Cancel WhenAny - linked CancellationTokenSource #106
Replies: 1 comment 1 reply
-
|
So I'm looking through one of my company's codebases, and I see a number of these which only seem to link one token, like this: CancellationTokenSource cts = CancellationTokenSource.CreateLinkedTokenSource(this._ct);This seems to allow a more "local" method (couldn't find a better term, not talking about local methods) to call |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Cancel WhenAny - linked CancellationTokenSource
In today's short post, I will show you how to cancel a Task with multiple inputs (aka multiple CancellationTokens) using CancellationTokenSource and CancellationTokenSource.CreateLinkedTokenSource.
https://steven-giesel.com/blogPost/cd950c5f-467b-48a3-99fe-e72865460579
Beta Was this translation helpful? Give feedback.
All reactions