Cancels all previously scheduled timers. Use with caution!
Cancels a previously scheduled timer
Schedules a timer to dispatch an event after a delay.
parameters object:
key (optional): a unique identifier for the timer. If not provided, the event will be usedevent: the event to dispatch when the timer expirespayload: the payload to include with the dispatched event, iff the event has onems: delay duration in milliseconds, or Infinity for no expiration.deadline: absolute expiration time, in performance.now() time.Exactly one of ms or deadline must be provided.
If a timer with the same key already exists, it will be replaced with the new timer.
The API exposed to actions via the
fsmparameter.