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

Function sleep

packages/socket.io-redis-streams-emitter/test/util.ts:21–23  ·  view source on GitHub ↗
(duration: number)

Source from the content-addressed store, hash-verified

19}
20
21export function sleep(duration: number) {
22 return new Promise((resolve) => setTimeout(resolve, duration));
23}
24
25const mode = process.env.REDIS_CLUSTER === "1" ? "cluster" : "standalone";
26const lib = process.env.REDIS_LIB || "redis";

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…