UseInterval
katanakit-js / useInterval
Function: useInterval()
Section titled “Function: useInterval()”function useInterval( callback, ms, immediate?): IntervalControl;Defined in: core/services/timing.service.ts:457
Interval with pause/resume/stop controls. See TimingService.useInterval.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
callback |
() => void | Promise<void> |
undefined |
ms |
number |
undefined |
immediate? |
boolean |
false |