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.181 -- Release Build+113ab35562e481060180aede63c34f30f3f2af7e
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