BackgroundFetchRegistration: abort()-Methode
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimentell: Dies ist eine experimentelle Technologie
Überprüfen Sie die Browser-Kompatibilitätstabelle sorgfältig vor der Verwendung auf produktiven Webseiten.
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die abort()
-Methode des BackgroundFetchRegistration
-Interfaces bricht einen aktiven Hintergrundabruf ab.
Syntax
abort()
Parameter
Keine.
Rückgabewert
Ein Promise
, das mit true
aufgelöst wird, wenn der Abruf erfolgreich abgebrochen wird.
Beispiele
Verwenden Sie abort()
, um einen im Gange befindlichen Hintergrundabruf zu beenden.
bgFetch.abort();
Spezifikationen
Specification |
---|
Background Fetch # background-fetch-registration-abort |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
abort |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.