MCPcopy
hub / github.com/nodejs/undici / eventLoopBlocker

Function eventLoopBlocker

test/utils/event-loop-blocker.js:3–6  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

1'use strict'
2
3function eventLoopBlocker (ms) {
4 const nil = new Int32Array(new SharedArrayBuffer(4))
5 Atomics.wait(nil, 0, 0, ms)
6}
7
8module.exports = {
9 eventLoopBlocker

Callers 2

timers.jsFile · 0.85
issue-3410.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…