TimerCreate
Callable
Parameters
callback: () => void
A function called when the timer expires
timeMs: number
Time in ms before the timer expires
optionalrepeat: boolean = false
Whether the timer should repeat. Default is false
optionaltype: background | foreground | universal = 'universal'
The type of timer. Default is universal
Returns () => void
- A function to remove the timer.
Returns void
Creates a timer. Returns a function to remove the timer.