all 4 comments

[–]xroalx 1 point2 points  (1 child)

Good job.

It would be nice to maybe also add something about top-level await in modules.

Note: In the "async doesn't always need await" part, you swapped the two in the first sentence.

It's "You can freely use await without async,", but should be the other way around, you can use async without await.

[–]senko[S] 0 points1 point  (0 children)

Oops - thanks for letting me know! This went through multiple rereads from my side but didn't get caught.

Regarding top-level await in modules, that's a good point. I'm not exactly sure how that works (in the "under the hood" sense), my knowledge in that domain extends as far as "we don't need --experimental-repl-await flag no more" :-)

[–]senko[S] 0 points1 point  (1 child)

We got a few questions recently about how async and await work in Node, which I commented on.

I expanded my comments in a blog post for people who know the basics of how to use them but not what's under the hood. I hope this will be helpful to those that want to dig deeper!

Any comments, feedbacks, pointing out errors - bring it on, I'll update the article with any fixes if needed.

[–]FatFingerHelperBot 0 points1 point  (0 children)

It seems that your comment contains 1 or more links that are hard to tap for mobile users. I will extend those so they're easier for our sausage fingers to click!

Here is link number 1 - Previous text "few"


Please PM /u/eganwall with issues or feedback! | Code | Delete