Share via


TplExtensions.NoThrowValueTaskAwaiter<TResult> Constructor

Definition

Initializes a new instance of the TplExtensions.NoThrowValueTaskAwaiter<TResult> struct.

public NoThrowValueTaskAwaiter (System.Threading.Tasks.ValueTask<TResult> task, bool captureContext);
new Microsoft.VisualStudio.Threading.TplExtensions.NoThrowValueTaskAwaiter<'Result> : System.Threading.Tasks.ValueTask<'Result> * bool -> Microsoft.VisualStudio.Threading.TplExtensions.NoThrowValueTaskAwaiter<'Result>
Public Sub New (task As ValueTask(Of TResult), captureContext As Boolean)

Parameters

task
ValueTask<TResult>

The task.

captureContext
Boolean

if set to true [capture context].

Applies to