MCPcopy
hub / github.com/socketio/socket.io / sleep

Function sleep

packages/socket.io-cluster-adapter/test/util.ts:11–13  ·  view source on GitHub ↗
(duration: number)

Source from the content-addressed store, hash-verified

9}
10
11export function sleep(duration: number) {
12 return new Promise((resolve) => setTimeout(resolve, duration));
13}

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected