-
Notifications
You must be signed in to change notification settings - Fork 521
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
Dispatcher#unsafeRunTimed
should also cancel()
if Await.result
is interrupt
ed
#3967
Comments
This is a good idea. We should probably also do it in |
I thought so, but it would be changing the explicitly documented API. cats-effect/core/jvm/src/main/scala/cats/effect/IOPlatform.scala Lines 47 to 48 in 328f61d
For the record, I can't think why we wouldn't want to improve it 😅 |
Yeah I'm in favor of improving both. |
@armanbilge @djspiewak |
It's all yours! Do you feel like you have a good idea on how to start? Feel free to ask questions here or in Discord (in the |
@djspiewak |
@djspiewak The main content of this issue, as I understand it, is that we want to perform a
Next, I will express my thoughts on how we should address this in both (1) and (2). For (1), my thought is that we should handle an For (2), based on my interpretation of the following comment, #3967 (comment) I thought the approach might be something like this:
I'm not sure how to proceed with this, but I would like to confirm if my understanding is correct. Or perhaps, even in the case of a timeout, is it acceptable to perform a |
i.e. if it throws an
InterruptedException
.cats-effect/std/jvm/src/main/scala/cats/effect/std/DispatcherPlatform.scala
Lines 58 to 66 in 97b0174
The text was updated successfully, but these errors were encountered: