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)
ParameterDescription
TResultThe type of the task’s result.
ParameterTypeDescription
resultTResultThe result value with which to complete the task.

ReturnValue

A successfully completed task.

See Also