Liking cljdoc? Tell your friends :D
ClojureScript only.

web.workers.ExtendableEvent

The ExtendableEvent interface extends the lifetime of the install activate events dispatched on the global scope as part of the worker lifecycle. This ensures that any functional events (like are not dispatched until it upgrades database schemas and deletes outdated cache entries.

The ExtendableEvent interface extends the lifetime of the install
activate events dispatched on the global scope as part of the
worker lifecycle. This ensures that any functional events (like
are not dispatched until it upgrades database schemas and deletes
outdated cache entries.
raw docstring

constructorcljs

(constructor & args)

Constructor.

The ExtendableEvent() constructor creates a new web.workers.ExtendableEvent object.

type The type of the ExtendableEvent, for example install, activate. init Optional An options object containing any custom settings that you want to apply to the event object. Currently no possible options exist inside the spec, but this has been defined for forward compatibility across the different derived events.

See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent

Constructor.

The ExtendableEvent() constructor creates a new `web.workers.ExtendableEvent` object.

type
The type of the ExtendableEvent, for example install, activate.
init Optional
An options object containing any custom settings that you want to apply to the event object. Currently no possible options exist inside the spec, but this has been defined for forward compatibility across the different derived events.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent`
sourceraw docstring

wait-untilcljs

(wait-until this promise)

Method.

The extendableEvent.waitUntil() method tells the event dispatcher work is ongoing. It can also be used to detect whether that work successful. In service workers, waitUntil() tells the browser work is ongoing until the promise settles, and it shouldn't terminate service worker if it wants that work to complete.

event.waitUntil(promise)

See also: https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/waitUntil

Method.

The extendableEvent.waitUntil() method tells the event dispatcher
work is ongoing. It can also be used to detect whether that work
successful. In service workers, waitUntil() tells the browser
work is ongoing until the promise settles, and it shouldn't terminate
service worker if it wants that work to complete.

`event.waitUntil(promise)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/waitUntil`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close