System::Threading::Tasks::Task::ContinueWith 方法
Task::ContinueWith(const Action<TaskPtr>&) method
创建一个在任务完成时执行的延续。
TaskPtr System::Threading::Tasks::Task::ContinueWith(const Action<TaskPtr> &continuationAction)
| 参数 | 类型 | 描述 |
|---|---|---|
| continuationAction | const Action<TaskPtr>& | 在此任务完成时执行的 Action |
ReturnValue
TaskPtr A new task representing the continuation
另见
- Typedef TaskPtr
- Typedef Action
- Class Task
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++
Task::ContinueWith(const Func<TaskPtr, TResult>&) method
创建一个在任务完成时执行的延续。
template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::Task::ContinueWith(const Func<TaskPtr, TResult> &continuationFunction)
| 参数 | 描述 |
|---|---|
| TResult | 任务结果的类型 |
| 参数 | 类型 | 描述 |
|---|---|---|
| continuationFunction | const Func<TaskPtr, TResult>& | 当此任务完成时获取结果的函数 |
ReturnValue
RTaskPtr A new task representing the continuation
另见
- Typedef RTaskPtr
- Class Func
- Typedef TaskPtr
- Class Task
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++