TaskFutureCreateT Method (TaskCompletionSourceT) |
Namespace: AccessFlowAssembly: AccessFlow (in AccessFlow.dll) Version: 1.0.0.2 (1.0.0.2)
Syntaxpublic static IFuture<T> Create<T>(
TaskCompletionSource<T> tcs
)
Public Shared Function Create(Of T) (
tcs As TaskCompletionSource(Of T)
) As IFuture(Of T)
public:
generic<typename T>
static IFuture<T>^ Create(
TaskCompletionSource<T>^ tcs
)
static member Create :
tcs : TaskCompletionSource<'T> -> IFuture<'T>
Parameters
- tcs
- Type: System.Threading.TasksTaskCompletionSourceT
The TaskCompletionSourceTResult whose
Task shall be wrapped.
Type Parameters
- T
-
The type of the value represented by
the result IFutureT and the
Task of
tcs.
Return Value
Type:
IFutureT
A new
IFutureT wrapping
the
Task of
tcs.
See Also