System.Threading.Tasks.TaskCompletionSource<TResult> Members

The members of System.Threading.Tasks.TaskCompletionSource<TResult> are listed below.

See Also: Inherited members from System.Object

Public Constructors

Public Properties

Public Methods

SetCanceled()

Transitions the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Canceled state.

SetException(IEnumerable<Exception>)

Transitions the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Faulted state.

SetException(Exception)

Transitions the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Faulted state.

SetResult(TResult)
Documentation for this section has not yet been entered.
TrySetCanceled() : bool

Attempts to transition the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Canceled state.

TrySetException(IEnumerable<Exception>) : bool

Attempts to transition the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Faulted state.

TrySetException(Exception) : bool

Attempts to transition the underlying System.Threading.Tasks.Task`1 into the TaskStatus.Faulted state.

TrySetResult(TResult) : bool
Documentation for this section has not yet been entered.