FromResult()
System::Threading::Tasks::FromResult(TResult) function
Creates a task that has successfully completed with the specified result.
template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::FromResult(TResult result)
Template parameters
| Parameter | Description |
|---|---|
| TResult | The type of the task’s result. |
Arguments
| Parameter | Type | Description |
|---|---|---|
| result | TResult | The result value with which to complete the task. |
Return Value
A successfully completed task.
See Also
- Typedef RTaskPtr
- Namespace System::Threading::Tasks
- Library Aspose.Slides