TaskCompletionSource(TResult) Constructor (Object)

TaskCompletionSource<TResult> Constructor (Object)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a TaskCompletionSource<TResult> with the specified state.

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

public TaskCompletionSource(
	Object state
)

Parameters

state
Type: System.Object
The state to use as the underlying Task<TResult>'s AsyncState.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft