-
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
Queued but unstarted work on Dispatcher.sequential
should be cancelable
#4069
Comments
cats-effect/std/shared/src/main/scala/cats/effect/std/Dispatcher.scala Lines 233 to 235 in 769a89e
If you need cancelation, use |
Ah, thanks. I was unknowingly reading the 3.5.3 scaladocs that my IDE had cached instead of the 3.5.4 ones. (Unfortunately |
I see, can you say more about why it doesn't fit your usecase? |
We only want one action happening at a time in the order that |
I see, are you calling |
Ohhh I'm sorry I missed this subtlety. Actually I completely agree with you. This should be fixed. Canceling running work is challenging, but unqueued work should definitely be cancelable. I remember complaining about this too 🤔 Edit: aha, I think I raised this issue on Discord. |
Dispatcher.sequential
should be cancelable
A queued task to a dispatcher cannot be canceled:
Perhaps this is explained somewhere, but it was surprising to me.
The text was updated successfully, but these errors were encountered: