←back to thread

123 points mooreds | 1 comments | | HN request time: 0s | source
Show context
lolive ◴[] No.45213787[source]
I am teaching asynchronous programming in typescript to junior developpers. And i find really tricky to tell them that async and await do MAJOR magic behind their back to make their code readable as synchronous code.

And then, I need to detail very precisely what "Promise.all()" (and "return") really mean in the context of async/await. Which is something that (I feel) could have been abstracted away during the async/await syntax definition, and make the full magic much more natural.

replies(3): >>45213797 #>>45213808 #>>45213970 #
uncletaco ◴[] No.45213797[source]
Man are you going to be disappointed when you read the article.
replies(1): >>45213826 #
1. lolive ◴[] No.45213826[source]
Man, for the first time in HN, I am teased to actually read the article.

Update: oh my god, I read the article. And feel completely cheated!!!!

Note for my future self: continue to read only the HN comments