• ShortFuse@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    9 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.)