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 Member Functions | |
| TimeFuture (const TimeFuture &)=delete | |
| TimeFuture & | operator= (const TimeFuture &)=delete |
| TimeFuture (TimeFuture &&other) | |
| TimeFuture & | operator= (TimeFuture &&other) |
| ~TimeFuture () | |
| TimeProvider< Clock > & | provider () |
| Clock::time_point | expiration () |
Public Member Functions inherited from pw::async2::experimental::Future< TimeFuture< Clock >, Clock::time_point > | |
| Poll< value_type > | Pend (Context &cx) |
| bool | is_complete () const |
Friends | |
| class | TimeProvider< Clock > |
Additional Inherited Members | |
Public Types inherited from pw::async2::experimental::Future< TimeFuture< Clock >, Clock::time_point > | |
| using | value_type = std::conditional_t< std::is_void_v< Clock::time_point >, ReadyType, Clock::time_point > |
Protected Member Functions inherited from pw::IntrusiveForwardList< T >::Item | |
| constexpr | Item ()=default |
|
inline |
Destructs timer.
Destruction is thread-safe, but not necessarily interrupt-safe.