service_worker
service_worker copied to clipboard
No way to abort a fetch
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.