Takes a callback and fires it when a condition is true
Arguments | Type | Description | Default value |
---|---|---|---|
callback | function | Function to be executed in timeout | undefind |
delay | Number | Number in milliseconds after which callback is to be run | 0 |
when | boolean | The condition which when true, sets the timeout | true |
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!