A future that holds a single value.
A ValueFuture is a concrete Future implementation that is vended by a ValueProvider or a BroadcastValueProvider. It waits until the provider resolves it with a value.
Public Types | |
| using | value_type = T |
Public Member Functions | |
| ValueFuture (ValueFuture &&other) noexcept | |
| ValueFuture & | operator= (ValueFuture &&other) noexcept |
| Poll< T > | Pend (Context &cx) |
| bool | is_complete () const |
Static Public Member Functions | |
| template<typename... Args> | |
| static ValueFuture | Resolved (Args &&... args) |
Friends | |
| class | FutureCore |
| class | ValueProvider< T > |
| class | BroadcastValueProvider< T > |
|
inlinestatic |
Creates a ValueFuture that is already resolved by constructing its value in-place.