671
STOP DOING ASYNC (lemmy.world)
submitted 5 months ago by Maven@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] ShortFuse@lemmy.world 9 points 5 months ago* (last edited 5 months ago)

async/await is just callback() and queueMicrotask wrapped up into a neat package. It's not supposed to replace multi-threading and confusing it for such is dangerous since you can still stall your main/UI thread with Promises (which async also wraps).

(async and await are also technically different things, but for the sake of simplicity here, consider them a pair.)

this post was submitted on 28 Jan 2024
671 points (94.7% liked)

Programmer Humor

31251 readers
1030 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS