Sets an interval immediately when a condition is true
Argument | Type | Description | Default value |
---|---|---|---|
callback | function | Function be invoked after each interval duration | undefined |
intervalDuration | number | Duration in milliseconds after which callback is invoked | 0 |
when | boolean | Only start timer when when is true | true |
startImmediate | boolean | Should the timer start immediately or no | false |
No return value.
Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!