## Task::Wait() const method


Attend que la tâche se termine.

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


## Voir aussi

* Class [Task](../)
* Namespace [System::Threading::Tasks](../../)
* Library [Aspose.Page for C++](../../../)
## Task::Wait(const CancellationToken\&) const method


Attend que la tâche se termine avec prise en charge de l'annulation.

```cpp
void System::Threading::Tasks::Task::Wait(const CancellationToken &cancellationToken) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| cancellationToken | const CancellationToken\& | Jeton à surveiller pour l'annulation pendant l'attente |

## Voir aussi

* Class [CancellationToken](../../../system.threading/cancellationtoken/)
* Class [Task](../)
* Namespace [System::Threading::Tasks](../../)
* Library [Aspose.Page for C++](../../../)
