4 ms·
TL;DR: async programming does not work well from the commandline.
by amelius 6y ago
TL;DR: async programming does not work well from the commandline.
- yoz-y 6y agoYeah, that's also my takeaway. I've also ran into this when debugging stuff inside the Dev Tools console, but it's not really an issue when writing code.
- SummerlyMars 6y agoAs of Node 14.8, you can use await at the top level. In previous versions (not sure for how long), it was hidden behind a flag. https://nodejs.org/en/blog/release/v14.8.0/ https://nodejs.org/en/blog/release/v14.8.0/
- jtdev 6y agoAnd node.js approach to concurrency is a mountain of accumulated error.