ConstantFutureToFutureT Method |
Creates an
IFutureT whose
value is already known at the time of creation.
Namespace: AccessFlowAssembly: AccessFlow (in AccessFlow.dll) Version: 1.0.0.2 (1.0.0.2)
Syntaxpublic static IFuture<T> ToFuture<T>(
this T value
)
<ExtensionAttribute>
Public Shared Function ToFuture(Of T) (
value As T
) As IFuture(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IFuture<T>^ ToFuture(
T value
)
[<ExtensionAttribute>]
static member ToFuture :
value : 'T -> IFuture<'T>
Parameters
- value
- Type: T
The value represented by the created IFutureT.
Type Parameters
- T
-
The type of the value represented
by the created IFutureT.
Return Value
Type:
IFutureTThe newly created
IFutureT.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
Remarks
This method can be invoked on an object of any type.
See Also