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 () |
![]() | |
Poll< value_type > | Pend (Context &cx) |
bool | is_complete () const |
Friends | |
class | TimeProvider< Clock > |
Additional Inherited Members | |
![]() | |
using | value_type = Clock::time_point |
![]() | |
constexpr | Item ()=default |
|
inline |
Destructs timer
.
Destruction is thread-safe, but not necessarily interrupt-safe.