TplExtensions::NoThrowTaskAwaiter Constructor (Task^, Boolean)

 

Initializes a new instance of NoThrowTaskAwaiter.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public:
NoThrowTaskAwaiter(
	Task^ task,
	bool captureContext
)

Parameters

task
Type: System.Threading.Tasks::Task^

The task.

captureContext
Type: System::Boolean

true if the continuation should be scheduled on the current sync context, otherwise false.

Return to top
Show: