olp-cpp-sdk
1.22.0
|
Creates a chain of tasks for an asynchronous execution. More...
#include <TaskContinuation.h>
Public Member Functions | |
TaskContinuation (std::shared_ptr< thread::TaskScheduler > scheduler) | |
Creates the TaskContinuation instance. More... | |
template<typename Callable > | |
Continuation< internal::AsyncResultType< Callable > > | Then (Callable task) |
Initializes the Continuation object. More... | |
Creates a chain of tasks for an asynchronous execution.
|
explicit |
Creates the TaskContinuation
instance.
scheduler | The TaskScheduler instance. |
Continuation< internal::AsyncResultType< Callable > > olp::thread::TaskContinuation::Then | ( | Callable | task | ) |
Initializes the Continuation
object.
It creates the Continuation
instance with a template callback as a parameter, which is the first task in the task continuation chain.
task | A task you want to add to the continuation chain. |