Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to abort a fetch #25

Open
donny-dont opened this issue Sep 13, 2020 · 0 comments
Open

No way to abort a fetch #25

donny-dont opened this issue Sep 13, 2020 · 0 comments

Comments

@donny-dont
Copy link

To abort a fetch request you would set RequestInit.signal with an AbortSignal taken from an AbortController. See https://developers.google.com/web/updates/2017/09/abortable-fetch for examples.

Currently the isomorphic fetch library does not support this. The dart:html library doesn't include AbortSignal or AbortController so this would need to be wrapped in JS interop code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant