Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ sleepSync
Function
sleepSync
test/common/index.js:956–960 ·
view source on GitHub ↗
(ms)
Source
from the content-addressed store, hash-verified
954
}
955
956
function
sleepSync(ms) {
957
const
sab =
new
SharedArrayBuffer(4);
958
const
i32 =
new
Int32Array(sab);
959
Atomics.wait(i32, 0, 0, ms);
960
}
961
962
function
resolveBuiltBinary(binary) {
963
if
(isWindows) {
Callers
1
m
Function · 0.85
Calls
1
wait
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…