MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster / wait

Function wait

app/public/socketcluster-client.js:2126–2132  ·  view source on GitHub ↗
(duration)

Source from the content-addressed store, hash-verified

2124}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2125},{"ag-request":8,"sc-errors":22,"ws":6}],5:[function(require,module,exports){
2126function wait(duration) {
2127 return new Promise((resolve) => {
2128 setTimeout(() => {
2129 resolve();
2130 }, duration);
2131 });
2132}
2133
2134module.exports = wait;
2135

Callers 2

_waitForNextItemMethod · 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…