Deno: AbortController

Created on 14 Nov 2019  Â·  4Comments  Â·  Source: denoland/deno

Are there plans to implement abortable fetch – i.e. AbortControllers?

Most helpful comment

We should support it.

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/API/AbortController

It is part of the Living Standard and fully implemented in greenfield browsers.

All 4 comments

We should support it.

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/API/AbortController

It is part of the Living Standard and fully implemented in greenfield browsers.

I’m wondering about this too. Signals in v0.31.0 probably could have leveraged them for disposing the signal stream.

We should really support this. It shouldn't be that difficult to implement and it really has broad support in browsers. Having abortable fetch is a pretty important feature. I was just reminded about it, so I thought I would bring it up again.

Certainly a good candidate for someone to contribute to Deno that wouldn't be small, as it likely would require communication with Rust to abort the fetch.

It’s a complex feature to add but I agree that it’s important.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JosephAkayesi picture JosephAkayesi  Â·  3Comments

benjamingr picture benjamingr  Â·  3Comments

kitsonk picture kitsonk  Â·  3Comments

davidbarratt picture davidbarratt  Â·  3Comments

ry picture ry  Â·  3Comments