## Task::Wait() method


Attend que la tâche se termine.

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


## Voir aussi

* Class [Task](../)
* Namespace [System::Threading::Tasks](../../)
* Library [Aspose.Font for C++](../../../)
## Task::Wait(const CancellationToken\&) 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)
```


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

## Voir aussi

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