TaskCollectorWithT Method (FuncITaskCollector, T) |
Executes a asynchronous method
content
with a newly created
ITaskCollector.
All
Task-s added to the
ITaskCollector
are awaited.
The result of
content is
passed as result.
Namespace: AccessFlowAssembly: AccessFlow (in AccessFlow.dll) Version: 1.0.0.2 (1.0.0.2)
Syntaxpublic static Task<T> With<T>(
Func<ITaskCollector, T> content
)
Public Shared Function With(Of T) (
content As Func(Of ITaskCollector, T)
) As Task(Of T)
public:
generic<typename T>
static Task<T>^ With(
Func<ITaskCollector^, T>^ content
)
static member With :
content : Func<ITaskCollector, 'T> -> Task<'T>
Parameters
- content
- Type: SystemFuncITaskCollector, T
The method executed with the new ITaskCollector.
Type Parameters
- T
- The type of the result.
Return Value
Type:
TaskT
The result of
content wrapped
in a
Task.
See Also