Module futures_intrusive::timer
source · Expand description
Asynchronous timers.
This module provides a timer implementation which returns awaitable
Futures.
The timer can work with a configurable clock source. In order to utilize
the system clock, a global instance StdClock can be utilized.
Structs
- An asynchronously awaitable timer.
- A Future that is resolved once the requested time has elapsed.
- A
Clockwhich can be set to arbitrary timestamps for testing purposes. - A Clock that makes use of the Standard libraries
std::time::Instantfunctionality in order to generate monotonically increasing timestamps. - A Future that is resolved once the requested time has elapsed.
Traits
- A monotonic source of time.
- An asynchronously awaitable timer which is bound to a thread.
- An asynchronously awaitable thread-safe timer.
Type Aliases
- A
GenericTimerServiceimplementation which is not thread-safe. - A
GenericTimerServiceimplementation backed byparking_lot.