Cancellation token #701
Unanswered
Robert-Capra
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I found out that cancellation token stops the download but the file remains still held in a process forever, to fix this i had to make:
new Task(async () =>
{
await youtube.Videos.DownloadAsync(x,
y,
z);
},cancelToken).Start();
if i do this, the file is locked in process
await youtube.Videos.DownloadAsync(x, y, z, canceltoken);
is anything i did wrong?
Beta Was this translation helpful? Give feedback.
All reactions