Nodejs Wait Event Loop para terminar
await new Promise(process.nextTick);
florinrelea
await new Promise(process.nextTick);