## Task::Wait() const method


Attende che il task sia completato.

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


## Vedi anche

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


Attende che il task sia completato con supporto alla cancellazione.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| cancellationToken | const CancellationToken\& | Token da monitorare per la cancellazione durante l'attesa |

## Vedi anche

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