MCPcopy Create free account
hub / github.com/anus-dev/ANUS / delay

Function delay

packages/core/src/utils/retry.ts:63–65  ·  view source on GitHub ↗

* Delays execution for a specified number of milliseconds. * @param ms The number of milliseconds to delay. * @returns A promise that resolves after the delay.

(ms: number)

Source from the content-addressed store, hash-verified

61 * @returns A promise that resolves after the delay.
62 */
63function delay(ms: number): Promise<void> {
64 return new Promise((resolve) => setTimeout(resolve, ms));
65}
66
67/**
68 * Retries a function with exponential backoff and jitter.

Callers 1

retryWithBackoffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected