System::Threading::Tasks::Delay 方法
System::Threading::Tasks::Delay(int32_t) method
创建一个在时间延迟后完成的任务。
TaskPtr System::Threading::Tasks::Delay(int32_t millisecondsDelay)
| Parameter | Type | 描述 |
|---|---|---|
| millisecondsDelay | int32_t | 在完成返回的任务之前等待的毫秒数,或使用 -1 表示无限期等待。 |
ReturnValue
表示时间延迟的任务。
另见
- Typedef TaskPtr
- Namespace System::Threading::Tasks
- Library Aspose.Page for C++
System::Threading::Tasks::Delay(int32_t, const CancellationToken&) method
TaskPtr System::Threading::Tasks::Delay(int32_t millisecondsDelay, const CancellationToken &cancellationToken)
另见
- Typedef TaskPtr
- Class CancellationToken
- Namespace System::Threading::Tasks
- Library Aspose.Page for C++