Share via


TplExtensions.NoThrowTaskAwaiter(Task, Boolean) Constructor

Definition

Initializes a new instance of the TplExtensions.NoThrowTaskAwaiter struct.

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

Parameters

task
Task

The task.

captureContext
Boolean

if set to true [capture context].

Applies to