rong_timer 0.3.0

Timer module for RongJS
docs.rs failed to build rong_timer-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: rong_timer-0.1.1

rong_timer

Timer APIs including standard callback timers plus Bun-aligned sleep helpers on Rong.

JS APIs

  • setTimeout(callback, delay?) — execute a callback once after a delay; returns a timer ID
  • clearTimeout(id) — cancel a timeout
  • setInterval(callback, delay?) — execute a callback repeatedly at an interval; returns a timer ID
  • clearInterval(id) — cancel an interval
  • Rong.sleep(delay?) — Bun-style async sleep; accepts milliseconds or a Date
  • Rong.sleepSync(delay?) — Bun-style synchronous sleep; blocks the current thread