Task::Wait(const CancellationToken&) method
Waits for the task to complete with cancellation support.
void System::Threading::Tasks::Task::Wait(const CancellationToken &cancellationToken)
Arguments
| Parameter | Type | Description |
|---|
| cancellationToken | const CancellationToken& | Token to monitor for cancellation while waiting |
Exceptions
| Exception | Description |
|---|
| OperationCanceledException | If the wait is canceled |
| Exception | If the task faults |
Task::Wait() method
Waits for the task to complete.
void System::Threading::Tasks::Task::Wait()
Exceptions
| Exception | Description |
|---|
| Exception | If the task faults |
See Also