Redigera

Dela via


TaskCompletionSource.SetResult Method

Definition

Transitions the underlying Task into the RanToCompletion state.

public:
 void SetResult();
public void SetResult ();
member this.SetResult : unit -> unit
Public Sub SetResult ()

Exceptions

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

Applies to