Get the latest tech news
You can't cancel a JavaScript promise (except sometimes you can)
A promise that never resolves is a surprisingly clean way to interrupt an async function.
None
Or read this on Hacker NewsGet the latest tech news
A promise that never resolves is a surprisingly clean way to interrupt an async function.
None
Or read this on Hacker NewsRead more on:
Related news: