## System::Threading::Tasks::Delay(int32_t) method


Crea un task che si completa dopo un ritardo temporale.

```cpp
TaskPtr System::Threading::Tasks::Delay(int32_t millisecondsDelay)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| millisecondsDelay | int32_t | Il numero di millisecondi da attendere prima di completare il task restituito, o -1 per attendere indefinitamente. |

### ReturnValue

Un task che rappresenta il ritardo temporale.

## Vedi anche

* Typedef [TaskPtr](../../system/taskptr/)
* Namespace [System::Threading::Tasks](../)
* Library [Aspose.Page for C++](../../)
## System::Threading::Tasks::Delay(int32_t, const CancellationToken\&) method




```cpp
TaskPtr System::Threading::Tasks::Delay(int32_t millisecondsDelay, const CancellationToken &cancellationToken)
```

## Vedi anche

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