Blocking Operation Example
let loop = (i, max) => {
while (i < max) i++
return i
}
// This operation will block Node.js
// Because, it's CPU-bound
// You should be careful about this kind of code
loop(0, 1e+12)
Non-Blocking IO Operation Example
let i = 0
const step = max =...