Results 1 - 1 of 1

ExtendableEvent.waitUntil()

The ExtendableEvent.waitUntil() method extends the lifetime of the event. When called in an EventHandler associated to the install event, it delays treating the installing worker as installed until the passed Promise resolves successfully. This is primarily used to ensure that a service worker is not considered installed until all of the core caches it depends on are populated.
API ExtendableEvent Method Reference waitUntil