service_worker icon indicating copy to clipboard operation
service_worker copied to clipboard

No way to abort a fetch

Open donny-dont opened this issue 4 years ago • 0 comments

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.

donny-dont avatar Sep 13 '20 18:09 donny-dont