TaskFutureToFutureT Method |
Namespace: AccessFlowAssembly: AccessFlow (in AccessFlow.dll) Version: 1.0.0.2 (1.0.0.2)
Syntaxpublic static IFuture<T> ToFuture<T>(
this Task<T> core
)
<ExtensionAttribute>
Public Shared Function ToFuture(Of T) (
core As Task(Of T)
) As IFuture(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IFuture<T>^ ToFuture(
Task<T>^ core
)
[<ExtensionAttribute>]
static member ToFuture :
core : Task<'T> -> IFuture<'T>
Parameters
- core
- Type: System.Threading.TasksTaskT
The Task to be wrapped.
Type Parameters
- T
-
The type of the value represented by
the result IFutureT and core.
Return Value
Type:
IFutureT
A new
IFutureT wrapping
the
Taskcore.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
TaskT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also