System::Threading::Tasks::ResultTask::ContinueWith method

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)
ParameterTypeDescription
continuationActionconst Action<RTaskPtr<T>>&Action to execute when this task completes, receiving this result task

ReturnValue

TaskPtr A new task representing the continuation

Remarks

The continuation action receives this ResultTask to access the result value

See Also

ResultTask::ContinueWith(const Action<TaskPtr>&) method

Creates a continuation that executes when the task completes.

TaskPtr System::Threading::Tasks::Task::ContinueWith(const Action<TaskPtr> &continuationAction)
ParameterTypeDescription
continuationActionconst Action<TaskPtr>&Action to execute when this task completes

ReturnValue

TaskPtr A new task representing the continuation

See Also

ResultTask::ContinueWith(const Func<RTaskPtr<T>, TNewResult>&) method

Creates a continuation that executes when the result task completes.

template<typename TNewResult> RTaskPtr<TNewResult> System::Threading::Tasks::ResultTask<T>::ContinueWith(const Func<RTaskPtr<T>, TNewResult> &continuationFunction)
ParameterDescription
TNewResultResult type of task continuation
ParameterTypeDescription
continuationFunctionconst Func<RTaskPtr<T>, TNewResult>&Function to get continuation result when this task completes, receiving this result task

ReturnValue

RTaskPtr A new task representing the continuation

Remarks

The continuation function receives this ResultTask to access the result value

See Also

ResultTask::ContinueWith(const Func<TaskPtr, TResult>&) method

Creates a continuation that executes when the task completes.

template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::Task::ContinueWith(const Func<TaskPtr, TResult> &continuationFunction)
ParameterDescription
TResultA type of task result
ParameterTypeDescription
continuationFunctionconst Func<TaskPtr, TResult>&Function to get result when this task completes

ReturnValue

RTaskPtr A new task representing the continuation

See Also