MCPcopy Create free account
hub / github.com/ethanniser/the-beth-stack / wait

Function wait

packages/beth-stack/src/jsx/tests/render.test.tsx:11–17  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

9import { Suspense, swapScript } from "../suspense";
10
11function wait(ms: number): Promise<number> {
12 return new Promise((resolve) =>
13 setTimeout(() => {
14 resolve(ms);
15 }, ms),
16 );
17}
18
19async function Wait({ ms }: { ms: number }) {
20 const data = await wait(ms);

Callers 1

WaitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected