MCPcopy
hub / github.com/nestjs/nest / sleep

Function sleep

tools/benchmarks/src/main.ts:112–114  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

110}
111
112function sleep(ms: number): Promise<void> {
113 return new Promise(resolve => setTimeout(resolve, ms));
114}
115
116async function waitForServer(url: string, timeoutMs = 5_000): Promise<void> {
117 const start = Date.now();

Callers 2

waitForServerFunction · 0.70
mainFunction · 0.70

Calls 1

setTimeoutFunction · 0.50

Tested by

no test coverage detected