TplExtensions::NoThrowAwaitable Method (Task^, Boolean)

 

Returns an awaitable for the specified task that will never throw, even if the source task faults or is canceled.

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

public:
[ExtensionAttribute]
static TplExtensions::NoThrowTaskAwaitable NoThrowAwaitable(
	Task^ task,
	bool captureContext = true
)

Parameters

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

The task.

captureContext
Type: System::Boolean

Return to top
Show: