When used as the TimeoutResolution type parameter, causes the FutureWithTimeout wrapper to return Ready(constant) when there is a timeout.
The constant value is stored when in this type when constructed, and adds to the total size of the FutureWithTimeout, so prefer to use this when the type is reasonably small. If it is larger, or you want on-demand construction, consider using ReadyFunctionResultResolution instead.
Public Types | |
| using | value_type = T |
Public Member Functions | |
| constexpr | ReadyConstantValueResolution (const cpp20::remove_cvref_t< ConstantType > &value) |
| constexpr | ReadyConstantValueResolution (cpp20::remove_cvref_t< ConstantType > &&value) |
| constexpr Poll< T > | operator() () const |