Does wrapping a blocking operation inside a promise still block the event loop? For example if I wrap a blocking syscall in a promise and return a resolve() when the blocking syscall ends does it keep the event loop running?
let a = new Promise((resolve, reject) => {
// run blocking synchronous function here
resolve();
}).then() {
// continue after promise solved
}
// running a periodic 'blinker'
setInterval(() => {
console.log('another second has passed');
}, 1000)
Would messages keep popping up every second if that blocking call took longer than that?