System.Threading.Tasks.TaskCompletionSource<TResult>
Represents the producer side of a Task{TResult} unbound to a
delegate, providing access to the consumer side through the Task property.
Gets the Task{TResult} created
by this TaskCompletionSource<T>.
public TaskCompletionSource()
Creates a TaskCompletionSource<T>.
Creates a TaskCompletionSource<T>
with the specified options.
Creates a TaskCompletionSource<T>
with the specified state.
Creates a TaskCompletionSource<T> with
the specified state and options.
Transitions the underlying
Task{TResult} into the
CanceledCanceled
state.
Transitions the underlying
Task{TResult} into the
FaultedFaulted
state.
Transitions the underlying
Task{TResult} into the
FaultedFaulted
state.
Transitions the underlying
Task{TResult} into the
RanToCompletionRanToCompletion
state.
Attempts to transition the underlying
Task{TResult} into the
CanceledCanceled
state.
Attempts to transition the underlying
Task{TResult} into the
FaultedFaulted
state.
Attempts to transition the underlying
Task{TResult} into the
FaultedFaulted
state.
Attempts to transition the underlying
Task{TResult} into the
RanToCompletionRanToCompletion
state.