IsomorphicExtendableEvent
Overview
See
Usage
- Node
- Deno
- Browser/ESM
import { IsomorphicExtendableEvent } from 'keywork/events/classes'
import { IsomorphicExtendableEvent } from 'https://deno.land/x/keywork/events/classes'
let { IsomorphicExtendableEvent } = await import('https://esm.sh/keywork/events/classes')
Hierarchy
Event
↳
IsomorphicExtendableEvent
Implements
Disposable
Constructors
constructor
new IsomorphicExtendableEvent
(type, eventInitDict?)
Parameters
Name | Type |
---|---|
type | string |
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
Name | Type |
---|---|
this | IsomorphicExtendableEvent |
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
Name | Type | Description |
---|---|---|
this | IsomorphicExtendableEvent | - |
nonBlockingTask | Promise<any> |
Returns
void
Defined in
events/classes/IsomorphicExtendableEvent.ts:33
Extends the lifetime of the
install
andactivate
events dispatched on the global scope as part of the service worker lifecycle.