MCPcopy Create free account
hub / github.com/ccxt/ccxt / sleep

Function sleep

run-tests.js:116–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114// --------------------------------------------------------------------------- //
115
116const sleep = s => new Promise (resolve => setTimeout (resolve, s*1000))
117const timeout = (s, promise) => Promise.race ([ promise, sleep (s).then (() => {
118 throw new Error ('RUNTEST_TIMED_OUT');
119}) ])

Callers 9

leakyBucketLoopMethod · 0.90
rollingWindowLoopMethod · 0.90
connectMethod · 0.90
closeAfterFunction · 0.90
timeoutFunction · 0.70
run-tests.jsFile · 0.70
openMethod · 0.50
ping_loopMethod · 0.50
close_afterFunction · 0.50

Calls

no outgoing calls

Tested by 1

close_afterFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…