process.tick starving others

PHOTO EMBED

Thu Jan 28 2021 13:13:36 GMT+0000 (UTC)

Saved by @noobj

let count = 0
const cb = () => {
    console.log(`Processing nextTick cb ${++count}`)
    process.nextTick(cb)
}
setImmediate(() => console.log('setImmediate is called'))
setTimeout(() => console.log('setTimeout executed'), 100)
process.nextTick(cb)
console.log('Start')
content_copyCOPY