-
Notifications
You must be signed in to change notification settings - Fork 535
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
Use our own NonFatal
exception classifier
#4254
Comments
Searching my memory banks... I think @viktorklang might be the only one with all the context on why |
Was taking a look at this to maybe open a PR. In addition to
Is there any reason why |
Thanks @kapunga! I'd start with the current implementation of Scala's |
I opened a Draft PR here: #4263 Right now, I'd love feedback on the naming, placement, and documentation of |
In #4247 (comment) I was caught by surprise that
InterruptedException
is considered fatal by Scala'sNonFatal
. It's not clear to me or Daniel S why this is the case.An example where you could reasonably get
InterruptedException
s cropping up on the runtime, is where aResource
creates a threadpool, runs some fibers on it, and cleans that threadpool up by interrupting+joining its threads. Depending on what those fibers are doing at the time the pool is shutdown, they may raiseInterruptedException
s.Daniel suggested that since we already have so much exception-handling machinery, it is not a huge lift to have our own "
NonFatal
" that considersInterruptedException
to indeed be non-fatal.The text was updated successfully, but these errors were encountered: