Skip to main content

IsomorphicExtendableEvent

Overview

Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle.

See

Usage

import { IsomorphicExtendableEvent } from 'keywork/events/classes'

Hierarchy

Implements

  • Disposable

Constructors

constructor

new IsomorphicExtendableEvent

(type, eventInitDict?)

Parameters

NameType
typestring
eventInitDict?EventInit

Inherited from

Event.constructor

Defined in

../../../../../node_modules/typescript/lib/lib.dom.d.ts:2

Methods

dispose

dispose

(): `void`

Returns

void

Implementation of

Disposable.dispose

Defined in

events/classes/IsomorphicExtendableEvent.ts:60

flushTasks

flushTasks

(this): `Promise<void>`

Awaits all tasks remaining in the queue.

Parameters

NameType
thisIsomorphicExtendableEvent

Returns

Promise<void>

Defined in

events/classes/IsomorphicExtendableEvent.ts:54

waitUntil

waitUntil

(this, nonBlockingTask): `void`

Extends the lifetime of the route handler, even after a Response is sent to a client.

Parameters

NameTypeDescription
thisIsomorphicExtendableEvent-
nonBlockingTaskPromise<any>

Returns

void

Defined in

events/classes/IsomorphicExtendableEvent.ts:33