MCPcopy Index your code
hub / github.com/nodejs/node / run

Function run

benchmark/async_hooks/async-local-storage-run.js:9–13  ·  view source on GitHub ↗
(store, n)

Source from the content-addressed store, hash-verified

7});
8
9async function run(store, n) {
10 for (let i = 0; i < n; i++) {
11 await new Promise((resolve) => store.run(i, resolve));
12 }
13}
14
15function main({ n }) {
16 const store = new AsyncLocalStorage();

Callers 1

mainFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected