Skip to main content
Module

x/keywork/mod.ts>Events.IsomorphicExtendableEvent

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
class Events.IsomorphicExtendableEvent
implements Disposable
extends Event
import { Events } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { IsomorphicExtendableEvent } = Events;

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

Properties

private
[kWaitUntil]: Promise<unknown>[]

Methods

Awaits all tasks remaining in the queue.

waitUntil(this: IsomorphicExtendableEvent, nonBlockingTask: Promise<any>): void

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