Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/websocket_broadcastchannel/src/fn.ts>createOrAbortController

Host-wide BroadcastChannel for Deno CLI, backed by WebSockets.
Latest
function createOrAbortController
import { createOrAbortController } from "https://deno.land/x/websocket_broadcastchannel@0.8.0/src/fn.ts";

Create an AbortController that can also abort when the given AbortSignal aborts.

Parameters

optional
signal: AbortSignal

Any AbortSignal to forward abort events from.

Returns

An AbortController that will also abort when the given AbortSignal aborts.