Class that makes new and tracks existing pending message bus promises. More...
#include <eagine/message_bus/future.hpp>
Public Member Functions | |
auto | make () -> std::tuple< message_sequence_t, future< T >> |
Constructs and returns a new message bus future and its unique id. More... | |
void | fulfill (message_sequence_t id, T value) |
Fulfills the promise/future pair idenified by id with the given value. | |
auto | update () -> bool |
Update the internal state of this promise/future tracker. | |
auto | has_some () const noexcept -> bool |
Indicates if there are any unfulfilled pending promises. More... | |
auto | has_none () const noexcept -> bool |
Indicates if there are no pending promises. More... | |
Class that makes new and tracks existing pending message bus promises.
|
inlinenoexcept |
Indicates if there are no pending promises.
|
inlinenoexcept |
Indicates if there are any unfulfilled pending promises.
|
inline |
Constructs and returns a new message bus future and its unique id.
The returned future can be used to retrieve the promise.