Task<TResult> Constructor

 

Initializes a new Task<TResult> object.

Namespace:   System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodTask<TResult>(Func<TResult>)

Initializes a new Task<TResult> with the specified function.

System_CAPS_pubmethodTask<TResult>(Func<TResult>, CancellationToken)

Initializes a new Task<TResult> with the specified function.

System_CAPS_pubmethodTask<TResult>(Func<TResult>, CancellationToken, TaskCreationOptions)

Initializes a new Task<TResult> with the specified function and creation options.

System_CAPS_pubmethodTask<TResult>(Func<TResult>, TaskCreationOptions)

Initializes a new Task<TResult> with the specified function and creation options.

System_CAPS_pubmethodTask<TResult>(Func<Object, TResult>, Object)

Initializes a new Task<TResult> with the specified function and state.

System_CAPS_pubmethodTask<TResult>(Func<Object, TResult>, Object, CancellationToken)

Initializes a new Task<TResult> with the specified action, state, and options.

System_CAPS_pubmethodTask<TResult>(Func<Object, TResult>, Object, CancellationToken, TaskCreationOptions)

Initializes a new Task<TResult> with the specified action, state, and options.

System_CAPS_pubmethodTask<TResult>(Func<Object, TResult>, Object, TaskCreationOptions)

Initializes a new Task<TResult> with the specified action, state, and options.

Return to top
Show: