18 #ifndef LUNCHBOX_READYFUTURE_H 19 #define LUNCHBOX_READYFUTURE_H 21 #include <lunchbox/future.h> 30 bool wait(
const uint32_t ) final {
return value; }
31 bool isReady() const final {
return true; }
43 #endif //LUNCHBOX_READYFUTURE_H Future< bool > makeFalseFuture()
bool isReady() const final
Future< bool > makeTrueFuture()
Base class to implement the wait method fulfilling the future.
A future represents a asynchronous operation.
A boolean future with a known value.
Abstraction layer and common utilities for multi-threaded programming.
bool wait(const uint32_t) final
Wait for the promise to be fullfilled.