MCPcopy Create free account
hub / github.com/cloudflare/computer / delay

Function delay

packages/computerd/src/cli/computerd.test.ts:474–476  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

472}
473
474function delay(ms) {
475 return new Promise((resolve) => setTimeout(resolve, ms));
476}
477
478async function waitFor(predicate, { timeoutMs = 2_000, intervalMs = 10 } = {}) {
479 const deadline = Date.now() + timeoutMs;

Callers 2

waitForHTTPOKFunction · 0.85
waitForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected