Task.Abort() #9387
-
I am using Tasks and IAsyncEnumerables for pretty much everything, so i can't abort the task without passing a CancellationTokenSource into every part of my code. at the moment my task just stays in memory forever waiting for a TaskCompletionSource i know will never be set, but i have a lot of those, so cancelling all of them wouldn't be the best solution. an Abort or at least a TryAbort function would make this way easier. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I cannot move this. However, this is not a language concern. This is something to take up with dotnet/runtime as they own these APIs. |
Beta Was this translation helpful? Give feedback.
I cannot move this. However, this is not a language concern. This is something to take up with dotnet/runtime as they own these APIs.