Skip to content

Comment on Ruby vs. JavaScript as a first programming languageparent

Comments

I don't think you can cancel a fetch - cancelling Promises was abandoned.

Do you mean cancellable promises were cancelled, or AbortSignal was cancelled? Because they went with the latter in the end. It got a bit fuzzy for a couple of years tbh. Personally I wanted cancellable promises because reasons, but i can appreciate the DRY aspects of AbortController and stuff going on in other APIs.

As recently as September the AbortSignal approach was implemented in Edge 16 and Firefox 57!

Pertinent piece from prominent professional Promise proponent Jake 'i don't only write about bloody promises' Archibald...

https://developers.google.com/web/updates/2017/09/abortable-...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.