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.