diff --git a/docs/standard/asynchronous-programming-patterns/consuming-the-task-based-asynchronous-pattern.md b/docs/standard/asynchronous-programming-patterns/consuming-the-task-based-asynchronous-pattern.md index 3f2dea20d9955..f38979cd279fb 100644 --- a/docs/standard/asynchronous-programming-patterns/consuming-the-task-based-asynchronous-pattern.md +++ b/docs/standard/asynchronous-programming-patterns/consuming-the-task-based-asynchronous-pattern.md @@ -90,7 +90,8 @@ var cts = new CancellationTokenSource(); cts.Cancel(); ``` - Cancellation requests may be initiated from any thread. +> [!IMPORTANT] +> Cancellation requests may be initiated from any thread. You can pass the value to any method that accepts a cancellation token to indicate that cancellation will never be requested. This causes the property to return `false`, and the called method can optimize accordingly. For testing purposes, you can also pass in a pre-canceled cancellation token that is instantiated by using the constructor that accepts a Boolean value to indicate whether the token should start in an already-canceled or not-cancelable state. @@ -142,7 +143,7 @@ public async void button1_Click(object sender, EventArgs e) } ``` - Some of these methods, such as the overload, exist as shorthand for the method. Other overloads, such as , enable you to use await within the offloaded work, for example: + Some of these methods, such as the overload, exist as shorthand for the method. This overload enable you to use await within the offloaded work, for example: ```csharp public async void button1_Click(object sender, EventArgs e)