vexide_async

Module time

source
Expand description

Utilities for tracking time.

This module provides a types for executing code after a set period of time.

  • Sleep is a future that does no work and completes at a specific Instant in time.

  • sleep and sleep_until provide ways to yield control away from a future for or until a specific instant in time.

Structs§

  • A future that will complete after a certain instant is reached in time.

Functions§

  • Returns a future that will complete after the given duration.
  • Returns a future that waits until a deadline is reached.