Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ testWait
Function
testWait
test/parallel/test-timers-promises-scheduler.js:18–23 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
16
}));
17
18
async
function
testWait() {
19
let
value = 0;
20
setTimeout(() => value++, 10);
21
await
scheduler.wait(15);
22
assert.strictEqual(value, 1);
23
}
24
25
testWait().then(common.mustCall());
26
Callers
1
test-timers-promises-scheduler.js
File · 0.85
Calls
2
setTimeout
Function · 0.50
wait
Method · 0.45
Tested by
no test coverage detected