System::Threading::Tasks::Task::Wait method

Task::Wait() const method

Waits for the task to complete.

void System::Threading::Tasks::Task::Wait() const

See Also

Task::Wait(const CancellationToken&) const method

Waits for the task to complete with cancellation support.

void System::Threading::Tasks::Task::Wait(const CancellationToken &cancellationToken) const
ParameterTypeDescription
cancellationTokenconst CancellationToken&Token to monitor for cancellation while waiting

See Also