TplExtensions.NoThrowTaskAwaitable(Task, Boolean) Constructor

Definition

Initializes a new instance of the TplExtensions.NoThrowTaskAwaitable struct.

public:
 NoThrowTaskAwaitable(System::Threading::Tasks::Task ^ task, bool captureContext);
public NoThrowTaskAwaitable (System.Threading.Tasks.Task task, bool captureContext);
new Microsoft.VisualStudio.Threading.TplExtensions.NoThrowTaskAwaitable : System.Threading.Tasks.Task * bool -> Microsoft.VisualStudio.Threading.TplExtensions.NoThrowTaskAwaitable
Public Sub New (task As Task, captureContext As Boolean)

Parameters

task
Task

The task.

captureContext
Boolean

Whether the continuation should be scheduled on the current sync context.

Applies to