MCPcopy Index your code
hub / github.com/socketio/socket.io / sleep

Function sleep

examples/basic-websocket-client/test/index.js:16–20  ·  view source on GitHub ↗
(delay)

Source from the content-addressed store, hash-verified

14}
15
16function sleep(delay) {
17 return new Promise((resolve) => {
18 setTimeout(resolve, delay);
19 });
20}
21
22describe("basic client", () => {
23 let io, port, socket;

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…