-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
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
On jvm IOApp clean exit, optionally print non-daemon threads #1379
Conversation
core/jvm/src/main/scala/cats/effect/internals/IOAppPlatform.scala
Outdated
Show resolved
Hide resolved
core/jvm/src/main/scala/cats/effect/internals/IOAppPlatform.scala
Outdated
Show resolved
Hide resolved
core/jvm/src/main/scala/cats/effect/internals/IOAppPlatform.scala
Outdated
Show resolved
Hide resolved
core/jvm/src/main/scala/cats/effect/internals/IOAppPlatform.scala
Outdated
Show resolved
Hide resolved
@mpilquist Thanks for the feedback. I'll try to get that cleaned up this weekend. Feel free to poke me if I don't ;) |
222d669
to
ab94ad2
Compare
Debugging when a jvm is being held open due to non-daemon threads is a royal pain. Try to help users here (who might not even know this can happen) by giving the option to debug, which we can put into a FAQ entry I opted for making it configurable here since this isn't a problem for most people, and there's no reason to slow down the shutdown for it unless debugging
ab94ad2
to
c8bfc27
Compare
The re-push was just the fix the "missing headers" CI failure. No changes aside from that |
Meant to do that from the start; accidentally did 1 sec
https://github.com/typelevel/cats-effect/runs/1393002433#step:14:40 |
I fixed the collections-compat part. I think this should be ready for merge now. I don't think it's a blocker, but I'm wondering how I could possibly write a unit test for this kind of behavior, though. It seems very hard to do. Any suggestions? |
Merged; thank you! I don't think it needs unit testing. Probably possible, definitely annoying, limited value. :-) |
Debugging when a jvm is being held open due to non-daemon threads is a royal
pain. Try to help users here (who might not even know this can happen) by
giving the option to debug, which we can put into a FAQ entry
I opted for making it configurable here so that folks who know their app is fine can disable it if they want to avoid us creating a Daemon thread near shutdown time.