Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
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
12
function
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
start
Method · 0.45
wait
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…