Share via


TaskExtensions Class

Definition

Task extensions

public ref class TaskExtensions abstract sealed
public static class TaskExtensions
type TaskExtensions = class
Public Module TaskExtensions
Inheritance
TaskExtensions

Methods

SwallowException(Task)

Swallow exceptions for event handlers. http://theburningmonk.com/2012/10/c-beware-of-async-void-in-your-code/

We need to read an Exception to prevent throwing an Exception for .NET 4.0 and below. See http://stackoverflow.com/questions/25691114/where-does-an-async-task-throw-exception-if-it-is-not-awaited

Applies to