Export (0) Print
Expand All

TaskCompletionSource<TResult> Methods

The TaskCompletionSource<TResult> type exposes the following members.

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetCanceled Transitions the underlying Task<TResult> into the Canceled state.
Public method SetException(IEnumerable<Exception>) Transitions the underlying Task<TResult> into the Faulted state.
Public method SetException(Exception) Transitions the underlying Task<TResult> into the Faulted state.
Public method SetResult Transitions the underlying Task<TResult> into the RanToCompletion state.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TrySetCanceled Attempts to transition the underlying Task<TResult> into the Canceled state.
Public method TrySetException(IEnumerable<Exception>) Attempts to transition the underlying Task<TResult> into the Faulted state.
Public method TrySetException(Exception) Attempts to transition the underlying Task<TResult> into the Faulted state.
Public method TrySetResult Attempts to transition the underlying Task<TResult> into the RanToCompletion state.
Top

Community Additions

ADD
Show:
© 2014 Microsoft