2min chapter

JS Party: JavaScript, CSS, Web Development cover image

JS logging & error handling

JS Party: JavaScript, CSS, Web Development

CHAPTER

Using Abort Signals in Parallel Programming

If you're not using abort signals in your promises, your code is probably incorrect. Everything that can potentially do and await should actually be waiting contingent on some abort signal. If an abort signal happens in parallel while you are waiting, you should stop waiting and throw or cancel or bail out. To even handle a control s signal correctly, you might actually want to use an aboart signal. Sometimes aboard signals are needed to even make control sea work,. But yes, sometimes you can just let your programme, right?

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode