Expand description
Utilities for tracking time.
This module provides a types for executing code after a set period of time.
Sleepis a future that does no work and completes at a specific [Instant] in time.sleepandsleep_untilprovide ways to yield control away from a future for or until a specific instant in time.
Structs§
- Sleep
- A future that will complete after a certain instant is reached in time.
Functions§
- sleep
- Waits until
durationhas elapsed. - sleep_
until - Waits until
deadlineis reached.