We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I enable the WindDown runtime flag, the following snippet code works properly and is never interrupted:
WindDown
object WindDownModeExample1 extends ZIOAppDefault { def run = { for { f <- ZIO.never.fork _ <- f.interrupt } yield () }.provide( Runtime.enableFlags(RuntimeFlag.WindDown) ) }
But when I enable it through the bootstrap layer, it will be interrupted!
object WindDownModeExample2 extends ZIOAppDefault { override val bootstrap = Runtime.enableFlags(RuntimeFlag.WindDown) def run = for { f <- ZIO.never.fork _ <- f.interrupt _ <- f.join } yield () }
The text was updated successfully, but these errors were encountered:
@khajavi you don't join in the first example?
Sorry, something went wrong.
@hearnadam That is not important! I tried joining, but the issue persists.
No branches or pull requests
When I enable the
WindDown
runtime flag, the following snippet code works properly and is never interrupted:But when I enable it through the bootstrap layer, it will be interrupted!
The text was updated successfully, but these errors were encountered: