#include <time_provider.h>
Public Member Functions | |
TimeFuture (const TimeFuture &)=delete | |
TimeFuture & | operator= (const TimeFuture &)=delete |
TimeFuture (TimeFuture &&other) | |
TimeFuture & | operator= (TimeFuture &&other) |
~TimeFuture () | |
Poll< typename Clock::time_point > | Pend (Context &cx) |
void | Reset (typename Clock::time_point expiration) |
Resets TimeFuture to expire at expiration . | |
TimeProvider< Clock > & | provider () |
Clock::time_point | expiration () |
Friends | |
class | TimeProvider< Clock > |
Additional Inherited Members | |
![]() | |
constexpr | Item ()=default |
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.
|
inline |
Destructs timer
.
Destruction is thread-safe, but not necessarily interrupt-safe.