// packages/editor/src/components/collaborators-overlay/timing-utils.ts
function setDelayedInterval(callback, delayMs) {
  let timerHandle = null;
  const runner = () => {
    try {
      callback();
    } catch {
    }
    timerHandle = setTimeout(runner, delayMs);
  };
  timerHandle = setTimeout(runner, delayMs);
  return () => {
    if (timerHandle) {
      clearTimeout(timerHandle);
    }
  };
}
export {
  setDelayedInterval
};
//# sourceMappingURL=timing-utils.mjs.map
