new Repeater(f, interval)
Wrapper around setTimeout that allows for the control of the timeout
Parameters:
| Name | Type | Description |
|---|---|---|
f |
function | The function to be called |
interval |
number | The number of milliseconds between invocations of f |
- Source:
Methods
-
start() → {Repeater}
-
Starts the timeout. If it has already started, this will reset the timeout
- Source:
Returns:
this
- Type
- Repeater
-
stop() → {Repeater}
-
Stops the timeout
- Source:
Returns:
this
- Type
- Repeater
-
update() → {Repeater}
-
Calls the provided function
- Source:
Returns:
this
- Type
- Repeater