Share via


TplExtensions.NoThrowValueTaskAwaitable(ValueTask, Boolean) Constructor

Definition

Initializes a new instance of the TplExtensions.NoThrowValueTaskAwaitable struct.

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

Parameters

task
ValueTask

The task.

captureContext
Boolean

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

Applies to