OxL Reference

17.4 Timers and schedules

oxl
sleep(BACKOFF)
after(RETRY_DELAY) { retry() }
every(SYNC_PERIOD) { sync() }
at(cron"0 9 * * MON-FRI".in(tz"Europe/Moscow")) { report() }
  • after, every, at are std.time functions with a closure as the last argument; they run in the current task until it is cancelled (for the background — spawn, cluster.leader or node.background).
  • every(d, missed: .Skip | .CatchUp) — what to do with missed ticks; .Skip by default.
  • cron"…" has 5 fields (minute, hour, day of month, month, day of week) or 6 (seconds as the first field); checked at compile time.

See also

Source: docs/spec/oxl-standard.en.md