-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Cancel a job if timeout exceed #439
Comments
Hi! |
The problem I think as you said is not cooperative.
Is a suspendCancellableCoroutine, but the timeout doesn't cancel the parent job properly. |
Then please provide a self-contained snippet of code which reproduces the problem, I'll take a look |
Here is my code :D
|
It looks like you forgot to instantiate a parent:
When block responsible for downloading is cancelled, neither inner To properly cancel it, you should pass
Hopefully it will be fixed automagically with #410 |
Thanks ! I will try that and I'll post my results based on your comments. |
I found a little problem, if the timeout is exceeded, the job is continue working until it finished.
The expected behavior that I supposed is that the job is going to be cancel if the time is exceeded.
This is the code
The text was updated successfully, but these errors were encountered: