async/await vs Promise: The Difference Is Error Flow, Not Syntax
Misusing async/await leads to silent error swallowing, runaway pending Promises, and order-of-magnitude performance gaps that are easy to miss in code review. These tested facts give Node and browser developers a precise, environment-validated boundary for when try/catch works and when it doesn't, plus a clear rule for mixing combinators with await in real code.
A deep, environment-tested breakdown of when to use async/await versus Promise combinators. The article makes the case that these aren't competing technologies, but two ways of writing the same thing: async functions always return a Promise, and await is just sugar over .then. The choice comes down to intent — linear flows get async/await, concurrent waits get Promise.all and friends.
The core advantage of async/await is error handling that flows naturally through control flow. But the article's measurements, run identically on Node 22.22.2, 24.22.3, 26.13.1 and Chrome 152, show a narrow boundary: try/catch only catches errors thrown on the current synchronous chain. Errors inside timers or other Promise callbacks are untouchable, and an executor that throws inside setTimeout leaves a Promise pending forever.
Several practical pitfalls are documented with measured ordering: await resumes via a microtask continuation, not in place; return and return await produce different finally ordering; forEach discards async callback promises; and three serial awaits are three times slower than Promise.all. The article closes with a decision table, a quick reference card, and six concrete mistakes to avoid, including the need for AbortController when cancellation matters.
Framing async/await as 'sugar' shifts the real question from syntax to error semantics: the only meaningful change is that errors become control flow rather than values passed through callbacks.
The measured boundary of try/catch explains why 'unhandled rejection' events exist at all: a synchronous try/catch can't see errors that escape into timers or other callbacks, so the host needs its own channel for them.
The return vs return await ordering difference shows how easily a piece of syntax can change observable behavior in a way that's invisible without an execution-order test; this is the kind of subtlety that makes async code hard to reason about.
The three-times-slower benchmark makes a practical point beyond performance: consecutive awaits encode a serial dependency that readers can't see unless they inspect the code; Promise.all expresses concurrency explicitly, which matters for maintainability as much as speed.
The article's hard rule against async callbacks in forEach reflects a broader principle: any API that discards return values silently becomes a trap when those returns are Promises, and the fix isn't to add await but to switch to a combinator.