System::Threading::Tasks::ResultTask class

ResultTask class

A Task specialization that returns a result value upon completion.

template<typename T>class ResultTask : public System::Threading::Tasks::Task
ParameterDescription
TThe type of the result value returned by the task

Methods

MethodDescription
ConfigureAwait(bool) constConfigures how awaits on this result task should behave regarding context capture.
ContinueWith(const Action<RTaskPtr<T>>&)Creates a continuation that executes when the result task completes.
get_Result()Gets the result of the asynchronous operation.
GetAwaiter() constGets an awaiter for this result task for use with Await.
ResultTask(const Func<T>&)Constructs a ResultTask with a function that returns a value.
ResultTask()Internal implementation. Not for user code.
set_Result(const T&)Sets the result value for the task.

Remarks

Represents an asynchronous operation that produces a result, similar to System.Threading.Tasks.Task in .NET

See Also