Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ go
Function
go
benchmark/child_process/spawn-echo.js:13–24 ·
view source on GitHub ↗
(n, left)
Source
from the content-addressed store, hash-verified
11
}
12
13
function
go(n, left) {
14
if
(--left === 0)
15
return
bench.end(n);
16
17
const
child = spawn(
'echo'
, [
'hello'
]);
18
child.on(
'exit'
, (code) => {
19
if
(code)
20
process.exit(code);
21
else
22
go(n, left);
23
});
24
}
Callers
1
main
Function · 0.70
Calls
4
spawn
Function · 0.50
end
Method · 0.45
on
Method · 0.45
exit
Method · 0.45
Tested by
no test coverage detected