Expand description
Timers, for the few things that have no event source (clocks, /proc counters), and one-shot
delays (Task::future(sleep(..)), e.g. to show something for a moment).
Structs§
- Duration
- A
Durationtype 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§
- every
- Returns a
Subscriptionthat produces messages at a set interval. - sleep
- Waits
duration. Nothing starts until the task runs it, so it’s safe to build inupdate.