System::Threading::Tasks::WaitAll method

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

Waits for all of the provided Task objects to complete execution.

void System::Threading::Tasks::WaitAll(const ArrayPtr<TaskPtr> &tasks)
ParameterTypeDescription
tasksconst ArrayPtr<TaskPtr>&An array of Task instances on which to wait.

See Also

System::Threading::Tasks::WaitAll(const ArrayPtr<TaskPtr>&, const CancellationToken&) method

Waits for all of the provided Task objects to complete execution.

void System::Threading::Tasks::WaitAll(const ArrayPtr<TaskPtr> &tasks, const CancellationToken &cancellationToken)
ParameterTypeDescription
tasksconst ArrayPtr<TaskPtr>&An array of Task instances on which to wait.
cancellationTokenconst CancellationToken&A CancellationToken to observe while waiting for the tasks to complete.

See Also