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 Clock which can be set to arbitrary timestamps for testing purposes.
A Clock that makes use of the Standard libraries std::time::Instant functionality 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 Definitions

A GenericTimerService implementation which is not thread-safe.
A GenericTimerService implementation backed by parking_lot.