Share via


TplExtensions.NoThrowValueTaskAwaitable<TResult> Constructor

Definition

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

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

Parameters

task
ValueTask<TResult>

The task.

captureContext
Boolean

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

Applies to