System::Threading::Tasks::FromResult method
System::Threading::Tasks::FromResult method
Creates a task that has successfully completed with the specified result.
template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::FromResult(TResult result)
| Parameter | Description |
|---|---|
| TResult | The type of the task’s result. |
| Parameter | Type | Description |
|---|---|---|
| result | TResult | The result value with which to complete the task. |
ReturnValue
A successfully completed task.
See Also
- Typedef RTaskPtr
- Namespace System::Threading::Tasks
- Library Aspose.PDF for C++