Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
amelius
· 5y ago · 0 comments
TL;DR: async programming does not work well from the commandline.
Comments
[–]
SummerlyMars
5y ago
As 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/
[–]
yoz-y
5y ago
Yeah, 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.
[–]
jtdev
5y ago
And node.js approach to concurrency is a mountain of accumulated error.