Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kyri-petrou
Copy link
Contributor

@kyri-petrou kyri-petrou commented Aug 28, 2025

/fixes #10122

With this change we won't log an interruption error on app shutdown. Note that this will still log an interruption error in case that the app is interrupted internally, e.g.,:

object Foo extends zio.ZIOAppDefault {
  override def run =
    for {
      f <- ZIO.never.forkDaemon
      _ <- f.interrupt.delay(2.seconds).forkDaemon
      _ <- f.join
    } yield ()
}

@kyri-petrou kyri-petrou requested a review from hearnadam August 28, 2025 07:30
@hearnadam hearnadam merged commit aa2baa3 into zio:series/2.x Aug 28, 2025
19 checks passed
@kyri-petrou kyri-petrou deleted the dont-log-shutdown-as-error branch August 31, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZIO 2.1.20 FiberFailure on shutdown

3 participants