Module time

Module time 

Source
Expand description

Cross-platform time module for rate limiting and retry backoff.

  • Native: delegates to std::time::Instant and tokio::time::sleep.
  • WASM: uses js_sys::Date::now() for time measurement and setTimeout (via js_sys::Promise) for async sleep.

Structs§

Duration
Simple duration representation for cross-platform compatibility
Instant

Functions§

sleep