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

Skip to content

Conversation

@rtimush
Copy link
Contributor

@rtimush rtimush commented May 5, 2023

When application shuts down, for example because of SIGTERM, interrupt all fibers except for the main one. We shouldn't interrupt the main fiber as all code there is under ZIO control and we want to run it to completion.

I believe this should resolve #8099.

@adamgfraser adamgfraser merged commit 0ef67d2 into zio:series/2.x May 5, 2023
@rtimush rtimush deleted the do-not-interrupt-main branch May 5, 2023 14:07
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.

Graceful shutdown results in 'Exception in thread "main"'

2 participants