-
Notifications
You must be signed in to change notification settings - Fork 117
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
Canceling a download Task
doesn't actually cancel it?
#753
Comments
Follow up: canceling the |
Sorry for this sitting unanswered over the weekend @gregcotten, let me see if I can reproduce this. |
Ok, so I don't reproduce this locally with a simple alternative. Here's the complete code I'm running:
This code correctly throws at the top level, showing the following output in the console:
You appear to be using slightly different APIs though, I can't find the APIs you're using on AHC. Do you know where they're coming from? If you run my sample code, do you see the same output as me? |
Stubbing this for now with hope to provide a reproducible test case when I have time...
I'm hoping to use structured concurrency Task cancellation to actually cancel a download, so I did something like this:
The actual download progresses until it's done downloading the file, no matter what, and then
downloadTask.get()
returns without throwing an error.What am I doing wrong here?
The text was updated successfully, but these errors were encountered: