MCPcopy
hub / github.com/tinyplex/tinybase / pause

Function pause

test/unit/common/other.ts:15–21  ·  view source on GitHub ↗
(ms = 50)

Source from the content-addressed store, hash-verified

13) as () => Promise<{Database: typeof Database}>;
14
15export const pause = async (ms = 50): Promise<void> =>
16 new Promise<void>((resolve) =>
17 setTimeout(
18 () => setTimeout(() => setTimeout(resolve, 1), Math.max(ms - 2, 1)),
19 1,
20 ),
21 );
22
23export const noop = () => undefined;
24

Callers 15

primitives.test.tsFile · 0.90
automerge.test.tsFile · 0.90
syncDocsFunction · 0.90
yjs.test.tsFile · 0.90
syncDocsFunction · 0.90
remote.test.tsFile · 0.90
persisters.test.tsFile · 0.90
partykit.test.tsFile · 0.90
tabular.test.tsFile · 0.90
json.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 3

syncDocsFunction · 0.72
syncDocsFunction · 0.72
syncFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…