Cancellation, Part 6: Linking
Explains linked cancellation tokens in C#, showing how to create a token that cancels when any of multiple source tokens are canceled.
Explains linked cancellation tokens in C#, showing how to create a token that cancels when any of multiple source tokens are canceled.
Explains how to cancel a C# task using multiple CancellationToken sources by linking them with CancellationTokenSource.CreateLinkedTokenSource.
Explains how to use Task.WhenAny with CancellationTokenSource in C# to cancel remaining asynchronous tasks after the first one completes.