Please help me grok asynchronous programming : javascript


Using a throwaway because I am fucking ashamed.

I have experience programming but just settling in with JS and have no idea what I’m doing when it comes to working with async JS code. I have written a couple NPM packages and find myself using calls like fs.writeFileSync because of my deficit in understanding. On the front end, the same applies — using fetch for example I’m only able to tell it’s async by common sense + reading the docs — other utilities/functions I’m never sure if it’s async/sync nor do i know how to tell. When using a promise (or async/await) the same ambiguity exists.

My goal for today is to deep dive into my deficit and I’m looking for any resources that may help. Screencasts, blog posts, docs, good code, etc.. anything that helped YOU.

Thank you so much!

قالب وردپرس