dotnet · dotnet/TaskCanceledException
TaskCanceledException
TaskCanceledException
Thrown when a Task is cancelled via a CancellationToken. Derives from OperationCanceledException; catch the base type when you want to handle any cancellation. Common when await-ing HttpClient calls or operations that observe a CancellationToken.