TaskCompletionSourceFactoryCreateNewT(Object) Method

Creates a new instance of the TaskCompletionSourceTResult class.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.147 -- Release Build+71918e29738e2d0700de8aec0ad72324b16f1428
public static TaskCompletionSource<T> CreateNew<T>(
	Object state
)

Parameters

state  Object
The state to use as the underlying Task's AsyncState.

Type Parameters

T
The type of the result value associated with the TaskCompletionSourceTResult.

Return Value

TaskCompletionSourceT
A new object of type TaskCompletionSourceTResult.

See Also