Expand description
Listen and react to time.
Structs§
- Duration
- A
Duration
type to represent a span of time, typically used for system timeouts. - Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration
.
Functions§
- days
- Creates a
Duration
representing the given amount of days. - every
tokio
orasync-std
orsmol
or WebAssembly - Returns a
Subscription
that produces messages at a set interval. - hours
- Creates a
Duration
representing the given amount of hours. - milliseconds
- Creates a
Duration
representing the given amount of milliseconds. - minutes
- Creates a
Duration
representing the given amount of minutes. - repeat
tokio
orasync-std
orsmol
or WebAssembly - Returns a
Subscription
that runs the given async function at a set interval; producing the result of the function as output. - seconds
- Creates a
Duration
representing the given amount of seconds.