Module sys/timer

sys/timer

Async timer operations.

Provides high-level async timer functions:

  • sleep(ms) — async sleep for the given number of milliseconds

Returns an IoFuture that resolves to a positive value on success or a negative errno. Use with await in async contexts.