zachleat’s Twitter Archive
—№ 35,271
⇤ Newest
Tweet
⇠ Newer
Tweet
Older
Tweet
⇢
thing I learned that I probably should have known already: even if you return a Promise in an async function JavaScript wraps it in a new Promise anyway it is the “paper or plastic? both” of code
Permalink
On twitter.com
♻️ 46
Retweets
❤️ 352
Favorites
2021 Jan 1
Mood +
2
🙂
…in reply to @zachleat
(diff: the left screenshot is an async function and the right screenshot is not)
On twitter.com
❤️ 8
Favorites
2021 Jan 1
Mood
0
…in reply to @zachleat
a bit more clarity on my inaccurate use of the word “wrap” above—thanks
@
apaleslimghost
!
@apaleslimghost/1345050045494800384
Permalink
On twitter.com
♻️ 2
Retweets
❤️ 11
Favorites
2021 Jan 1
Mood +
2
🙂