Learn how to properly handle rejected promises in TypeScript using Angular, with tips for retry logic, typed results, and avoiding unhandled exceptions.
AI’s not just following orders anymore. If you’re building the frontend, here’s how to design interfaces that actually understand your agent’s smarts.
Apple Intelligence is here. What does it mean for frontend dev and UX? Explore the core features of the update, do’s and don’ts for designing with Apple Intelligence in mind, and reflect on the future of AI design.
after()
Next.js’ after()
is a new API that lets you run logic after your route has finished rendering, without blocking the client.
4 Replies to "Promise chaining is dead. Long live async/await"
well written, thanks
awaits are actually converted back to yields, which in turn are converted to closures…so the garbage collector argument does not hold. Otherwise, great post, thanks!
Nice article. But, if you have to replace Promise.all with an external library.. then Promise.all is not dead.
How do we do this level of asynchronous task in await?:
const result = await Promise.all([
independentTask,
taskA.then(resultA => {
return dependentOnTaskA(resultA)
})
])
The point is that independentTask is one work flow, and task->dependentOnTaskA is another workflow. And hence, neither should be waiting on either.