AsTask()
ResultValueTask::AsTask() const method
Converts this ResultValueTask to a shared pointer to ResultTask<T>.
RTaskPtr<T> System::Threading::Tasks::ResultValueTask<T>::AsTask() const
Return Value
RTaskPtr<T> A shared pointer to a ResultTask<T> that represents this operation.
Remarks
If the ResultValueTask contains a direct result, creates a completed task with that result. If it contains a task, returns a shared pointer to that task.
See Also
- Typedef RTaskPtr
- Class ResultValueTask
- Namespace System::Threading::Tasks
- Library Aspose.Slides