Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ delay
Function
delay
test/parallel/test-promise-unhandled-issue-43655.js:6–10 ·
view source on GitHub ↗
(time)
Source
from the content-addressed store, hash-verified
4
const
assert = require(
'assert'
);
5
6
function
delay(time) {
7
return
new
Promise((resolve) => {
8
setTimeout(resolve, time);
9
});
10
}
11
12
async
function
test() {
13
for
(
let
i = 0; i < 100000; i++) {
Callers
1
test
Function · 0.70
Calls
1
setTimeout
Function · 0.50
Tested by
1
test
Function · 0.56