VocalDocs

StateTimer

A timer of a state: started when the state is entered and cancelled when it is left. When it fires, its event is raised.

An object with 2 fields.

Fields

eventMachineEventNamerequired
The event the timer raises, named timer.<name>.
msintegerrequired
How long after the state is entered the timer fires, in milliseconds: 1 second to 1 hour.