ContinueWith()

ResultTask::ContinueWith(const Action<RTaskPtr<T>>&) method

Creates a continuation that executes when the result task completes.

TaskPtr System::Threading::Tasks::ResultTask<T>::ContinueWith(const Action<RTaskPtr<T>> &continuationAction)

Arguments

ParameterTypeDescription
continuationActionconst Action<RTaskPtr<T>>&Action to execute when this task completes, receiving this result task

Return Value

TaskPtr A new task representing the continuation

Remarks

The continuation action receives this ResultTask to access the result value

See Also