Timers

Wrapper functions for handling timers

Author
  • Mark Mayes / mm-dev
License
  • GPL-3.0-only
Source

Methods

(static) clearByID(_id)

Source
Clear a timeout based on its ID
Parameters
Name Type Description
_id string

The timer ID

(static) setByID(_id, _timeoutArgs)

Source
Set a timeout and assign it an ID so that it can be easily cleared
Parameters
Name Type Description
_id string

The timer ID

_timeoutArgs Array.<object>

An array of arguments, exactly as would be passed to a native setTimeout() call