TaskCollectorWithT Method (FuncITaskCollector, TaskT) |
Executes an asynchronous method
content
with a newly created
ITaskCollector.
All
Task-s added to the
ITaskCollector
are awaited.
The asynchronous 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, Task<T>> content
)
Public Shared Function With(Of T) (
content As Func(Of ITaskCollector, Task(Of T))
) As Task(Of T)
public:
generic<typename T>
static Task<T>^ With(
Func<ITaskCollector^, Task<T>^>^ content
)
static member With :
content : Func<ITaskCollector, Task<'T>> -> Task<'T>
Parameters
- content
- Type: SystemFuncITaskCollector, TaskT
The method executed with the new ITaskCollector.
Type Parameters
- T
- The type of the result.
Return Value
Type:
TaskT
The asynchronous result of
content.
See Also