A timer which can asynchronously wait for time to pass.
This timer uses a TimeProvider to control its execution and so can be used with any TimeProvider with a compatible Clock type.
Public Types | |
| using | value_type = typename Clock::time_point |
Public Member Functions | |
| TimeFuture (const TimeFuture &)=delete | |
| TimeFuture & | operator= (const TimeFuture &)=delete |
| TimeFuture (TimeFuture &&other) | |
| TimeFuture & | operator= (TimeFuture &&other) |
| ~TimeFuture () | |
| constexpr bool | is_pendable () const |
| constexpr bool | is_complete () const |
| Poll< typename Clock::time_point > | Pend (Context &cx) |
| TimeProvider< Clock > & | provider () |
| Clock::time_point | expiration () |
Friends | |
| class | TimeProvider< Clock > |
Additional Inherited Members | |
Protected Member Functions inherited from pw::IntrusiveForwardList< T >::Item | |
| constexpr | Item ()=default |
|
inline |
Destructs timer.
Destruction is thread-safe, but not necessarily interrupt-safe.