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

x/websocket_broadcastchannel/src/state-machine.ts>StateMachine.gotoFn

Host-wide BroadcastChannel for Deno CLI, backed by WebSockets.
Latest
method StateMachine.gotoFn
import { StateMachine } from "https://deno.land/x/websocket_broadcastchannel@0.8.0/src/state-machine.ts";

Utility function to create a transition function that only immediately transitions to the given state.

Parameters

instanceGetter: () => StateMachine<S>

A function that returns the state machine instance.

to: S

The state to transition to.