MCPcopy Index your code
hub / github.com/tinyplex/tinybase / startInterval

Function startInterval

src/common/other.ts:24–33  ·  view source on GitHub ↗
(
  callback: () => void,
  sec: number,
  immediate?: 1,
)

Source from the content-addressed store, hash-verified

22export const boolean = Boolean;
23
24export const startInterval = (
25 callback: () => void,
26 sec: number,
27 immediate?: 1,
28) => {
29 if (immediate) {
30 callback();
31 }
32 return setInterval(callback, sec * THOUSAND);
33};
34export const stopInterval = clearInterval;
35
36export const startTimeout = (callback: () => void, sec: number = 0) =>

Callers 3

addPersisterListenerFunction · 0.90
addPersisterListenerFunction · 0.90
startPollingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…