MCPcopy 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
956function sleepSync(ms) {
957 const sab = new SharedArrayBuffer(4);
958 const i32 = new Int32Array(sab);
959 Atomics.wait(i32, 0, 0, ms);
960}
961
962function resolveBuiltBinary(binary) {
963 if (isWindows) {

Callers 1

mFunction · 0.85

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…