Partilhar via


TplExtensions.NoThrowValueTaskAwaiter<TResult> Construtor

Definição

Inicializa uma nova instância do struct TplExtensions.NoThrowValueTaskAwaiter<TResult>.

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)

Parâmetros

task
ValueTask<TResult>

A tarefa.

captureContext
Boolean

se definido como true [contexto de captura].

Aplica-se a