Ler em inglês Editar

Compartilhar via


TaskCompletionSource.SetResult Method

Definition

Transitions the underlying Task into the RanToCompletion state.

public void SetResult ();

Exceptions

The underlying Task is already in one of the three final states: RanToCompletion, Faulted, or Canceled.

Applies to

Produto Versões
.NET 5, 6, 7, 8, 9