AsTask()

ResultValueTask::AsTask() const method

Converts this ResultValueTask to a shared pointer to ResultTask.

RTaskPtr<T> System::Threading::Tasks::ResultValueTask<T>::AsTask() const

Return Value

RTaskPtr A shared pointer to a ResultTask 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