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

Function main

benchmark/worker/atomics-wait.js:12–18  ·  view source on GitHub ↗
({ n })

Source from the content-addressed store, hash-verified

10});
11
12function main({ n }) {
13 const i32arr = new Int32Array(new SharedArrayBuffer(4));
14 bench.start();
15 for (let i = 0; i < n; i++)
16 Atomics.wait(i32arr, 0, 1); // Will return immediately.
17 bench.end(n);
18}

Callers

nothing calls this directly

Calls 3

startMethod · 0.45
waitMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…