-
Notifications
You must be signed in to change notification settings - Fork 1.9k
collectLatest job is not cancelled when blocked #3679
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
Comments
A small note: it's reproducible on 1.6.4 coroutines |
This scenario is highly concurrent, so there is a chance Traces
Or any other combination. The only requirement is that every "processed" should be paired with "cancelled" Regarding the bug -- it has the very same reason as #3109 and why #3168 is not yet stable. |
Correct, sorry I've omitted this. The point that the |
In IJ we have a blocking API which reacts on its own cancellation handles. I'm attaching
invokeOnCompletion(onCancelling = true)
handler to cancel IJ own cancellation handle, but theinvokeOnCompletion
handler is never invoked despite both emitter and collector being executed inDispatchers.Default
, and collector launches a standalone coroutine for each collected element.https://pl.kotl.in/hnYvONrvy
Provide a Reproducer
Expected:
Actual:
The text was updated successfully, but these errors were encountered: