Comment

Comment by JSONwebtoken

The brevity and aesthetics of async/await has made me reluctant to move back to any pyramid type async chain. I don't know if it's good practice, but I use typescript to declare an optional null type and just return a null from inside the async function if I need to cancel.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton