Good fellow setImmediate

PHOTO EMBED

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

Saved by @noobj

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