Created
November 14, 2021 13:24
-
-
Save rehasantiago/124c2dade94a851682cb45cc7b501a2c to your computer and use it in GitHub Desktop.
https://readosapien.com/queues-in-node-js/- queues in node js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'), | |
path = require('path'), | |
filePath = path.join(__dirname, 'test.js'); | |
setTimeout(()=> console.log("setTimeout"), 0); | |
Promise.resolve().then(() => console.log("promise")) | |
fs.readFile('filePath', function() { | |
console.log('readFile'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment