3 ms·
>Because Node.js has no threading, async I/O is the only choice. Result: 100% of the libraries are async I/O All async I/O functions have a corresponding sync
by jsprogrammer 11y ago
>Because Node.js has no threading, async I/O is the only choice. Result: 100% of the libraries are async I/O
All async I/O functions have a corresponding sync version.
E.g.
const buffer = fs.readFileSync(path);