MCPcopy Create free account
hub / github.com/dailydotdev/apps / later

Function later

packages/shared/src/features/patchy/patchyIdle.ts:115–121  ·  view source on GitHub ↗
(fn: () => void, ms: number)

Source from the content-addressed store, hash-verified

113 const timers = new Set<ReturnType<typeof setTimeout>>();
114 let isBusy = false;
115 const later = (fn: () => void, ms: number) => {
116 const id = setTimeout(() => {
117 timers.delete(id);
118 fn();
119 }, ms);
120 timers.add(id);
121 };
122 const play = (name: PatchyIdleActionName) => {
123 if (document.hidden) {
124 return;

Callers 4

SimProviderFunction · 0.85
playFunction · 0.85
blinkLoopFunction · 0.85
actionLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected