Partilhar via


TplExtensions.NoThrowValueTaskAwaitable<TResult> Construtor

Definição

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

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)

Parâmetros

task
ValueTask<TResult>

A tarefa.

captureContext
Boolean

Se a continuação deve ser agendada no contexto de sincronização atual.

Aplica-se a