MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster-server / wait

Function wait

test/integration.js:32–38  ·  view source on GitHub ↗
(duration)

Source from the content-addressed store, hash-verified

30let server, client;
31
32function wait(duration) {
33 return new Promise((resolve) => {
34 setTimeout(() => {
35 resolve();
36 }, duration);
37 });
38}
39
40async function resolveAfterTimeout(duration, value) {
41 await wait(duration);

Callers 3

resolveAfterTimeoutFunction · 0.85
integration.jsFile · 0.85
middlewareFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…