678
STOP DOING ASYNC (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] ShortFuse@lemmy.world 9 points 1 year ago* (last edited 1 year 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
678 points (94.8% liked)

Programmer Humor

36571 readers
534 users here now

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

Rules:

founded 5 years ago
MODERATORS