Module mogwai::time

source ·
Expand description

Wait or sleep or delay future.

Structs

Functions

  • Returns a timestamp representing the number of milliseconds (accurate to within 5 microseconds if the device supports it) elapsed since an arbitrary start time.
  • Run the given async-producing-function evaluating if it produces true, if false wait for a given amount of time and try again N-1 times.
  • Schedule the given closure to be run as soon as possible.
  • Wait until the given async-producing-function returns a value.
  • Wait approximately the given number of milliseconds.
  • Wait approximately the given number of seconds.
  • Wait while the given polling function returns true.