then |
Defined in
<concurrency/future.hpp> |
Creates a continuation on the current future.
(1) | ||
(2) | ||
(3) | ||
(4) |
(1)
Constructs a continuation on an r-value with the passed callable object using the provided executor.
Parameters
Executor which is used to schedule the resulting task. |
|||
Callable object that implements the continuation. |
Returns
a future of the type of the result type of the passed function object.
(2)
Constructs a continuation with the passed callable object using the provided executor.
Parameters
Executor which is used to schedule the resulting task. |
|||
Callable object that implements the continuation. |
Returns
a future of the type of the result type of the passed function object.
(3)
Constructs a continuation on a r-value with the passed callable object using the same executor as this.
Parameters
Callable object that implements the continuation. |
Returns
a future of the type of the result type of the passed function object.
(4)
Constructs a continuation with the passed callable object using the same executor as this.
Parameters
Callable object that implements the continuation. |
Returns
a future of the type of the result type of the passed function object.
Creates a new continuation on the current object.
Multiple then()
invocations on the same future object realize a split. The result of this will be copied into all continuations.
If T
of future<T>
is a move only type, then a split is not possible of course.