[−][src]Trait futures_intrusive::timer::Timer
An asynchronously awaitable thread-safe timer.
The timer operates on millisecond precision and makes use of a configurable clock source.
The timer allows to wait asynchronously either for a certain duration,
or until the provided Clock
reaches a certain timestamp.
Required methods
fn delay(&self, delay: Duration) -> TimerFuture
Returns a future that gets fulfilled after the given Duration
fn deadline(&self, timestamp: u64) -> TimerFuture
Returns a future that gets fulfilled when the utilized Clock
reaches
the given timestamp.
Implementors
impl<MutexType: RawMutex> Timer for GenericTimerService<MutexType> where
MutexType: Sync,
[src]
MutexType: Sync,
fn delay(&self, delay: Duration) -> TimerFuture
[src]
Returns a future that gets fulfilled after the given Duration
fn deadline(&self, timestamp: u64) -> TimerFuture
[src]
Returns a future that gets fulfilled when the utilized Clock
reaches
the given timestamp.