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

x/websocket_broadcastchannel/src/one-time-fuse.ts>OneTimeFuse

Host-wide BroadcastChannel for Deno CLI, backed by WebSockets.
Latest
class OneTimeFuse
import { OneTimeFuse } from "https://deno.land/x/websocket_broadcastchannel@0.8.0/src/one-time-fuse.ts";

OneTimeFuse

You can blow it once, and after that, it will throw an exception if you try again.

Constructors

new
OneTimeFuse(errorMessage?, errorConstructor?)

Properties

private
readonly
blown: StateMachine<boolean>
readonly
isBlown: boolean

Methods

blow(): void | never