675
STOP DOING ASYNC (lemmy.world)
submitted 7 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 7 months ago* (last edited 7 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
675 points (94.8% liked)

Programmer Humor

32042 readers
1324 users here now

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

Rules:

founded 5 years ago
MODERATORS