Skip to content

Interface: timers

Generated from zaun:bot@0.2.0 (wit/ in zaun-bot). Do not edit.

Timers (capability timers). Each fires on-timer with its id and tag.

  • use types.{host-error}
after: func(ms: u64, tag: string) -> result<u64, host-error>;

Fires once after ms.

every: func(ms: u64, tag: string) -> result<u64, host-error>;

Fires every ms (≥ 1000).

cancel: func(id: u64);