Specialization for a future that does not return any value, just a completion signal.
Public Types | |
| using | value_type = void |
Public Member Functions | |
| ValueFuture (ValueFuture &&other) noexcept | |
| ValueFuture & | operator= (ValueFuture &&other) noexcept |
| void | Cancel () |
| Poll | Pend (Context &cx) |
| bool | is_pendable () const |
| bool | is_complete () const |
Static Public Member Functions | |
| static ValueFuture | Resolved () |
|
inline |
Cancels the future.
Always call Cancel() in the destructor of any class derived from ValueFuture to ensure the future is unlisted before the derived class members are destroyed.