operator| |
Defined in
<concurrency/future.hpp> |
Creates a continuation on the current future.
(1) | ||
(2) | ||
(3) | ||
(4) |
(1)
Constructs a continuation with the passed callable object using the provided executor.
Parameters
(2)
Constructs a continuation on a r-value with the passed callable object using the same.
Parameters
(3)
Constructs a continuation on a r-value with the passed callable object using the provided executor.
Parameters
(4)
Constructs a continuation with the passed callable object using the provided executor.
Parameters
Creates a new continuation on the current object.
Multiple operator|()
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.