System::Threading::Tasks::WhenAll method

System::Threading::Tasks::WhenAll(const ArrayPtr<RTaskPtr<TResult>>&) method

Creates a task that will complete when all of the supplied tasks have completed.

template<typename TResult> RTaskPtr<ArrayPtr<TResult>> System::Threading::Tasks::WhenAll(const ArrayPtr<RTaskPtr<TResult>> &tasks)
ParameterDescription
TResultThe type of the completed tasks’ results.
ParameterTypeDescription
tasksconst ArrayPtr<RTaskPtr<TResult>>&The tasks to wait on for completion.

ReturnValue

A task that returns an array of all the results when all tasks complete.

See Also

System::Threading::Tasks::WhenAll(const ArrayPtr<TaskPtr>&) method

Creates a task that will complete when all of the supplied tasks have completed.

TaskPtr System::Threading::Tasks::WhenAll(const ArrayPtr<TaskPtr> &tasks)
ParameterTypeDescription
tasksconst ArrayPtr<TaskPtr>&The tasks to wait on for completion.

ReturnValue

A task that represents the completion of all of the supplied tasks.

See Also

System::Threading::Tasks::WhenAll(const SharedPtr<Collections::Generic::IEnumerable<RTaskPtr<TResult>>>&) method

Creates a task that will complete when all of the supplied tasks have completed.

template<typename TResult> RTaskPtr<ArrayPtr<TResult>> System::Threading::Tasks::WhenAll(const SharedPtr<Collections::Generic::IEnumerable<RTaskPtr<TResult>>> &tasks)
ParameterDescription
TResultThe type of the completed tasks’ results.
ParameterTypeDescription
tasksconst SharedPtr<Collections::Generic::IEnumerable<RTaskPtr<TResult>>>&The tasks to wait on for completion.

ReturnValue

A task that returns an array of all the results when all tasks complete.

See Also

System::Threading::Tasks::WhenAll(const SharedPtr<Collections::Generic::IEnumerable<TaskPtr>>&) method

Creates a task that will complete when all of the supplied tasks have completed.

TaskPtr System::Threading::Tasks::WhenAll(const SharedPtr<Collections::Generic::IEnumerable<TaskPtr>> &tasks)
ParameterTypeDescription
tasksconst SharedPtr<Collections::Generic::IEnumerable<TaskPtr>>&The tasks to wait on for completion.

ReturnValue

A task that represents the completion of all of the supplied tasks.

See Also