(ms)
| 1 | 'use strict' |
| 2 | |
| 3 | function eventLoopBlocker (ms) { |
| 4 | const nil = new Int32Array(new SharedArrayBuffer(4)) |
| 5 | Atomics.wait(nil, 0, 0, ms) |
| 6 | } |
| 7 | |
| 8 | module.exports = { |
| 9 | eventLoopBlocker |
no outgoing calls
no test coverage detected
searching dependent graphs…