Skip to content
Français

SteeringState

import type { SteeringState } from "@elie-laloum/outpost";

State of a Steering controller. Values: “idle” (no dispatch attached; sent messages wait for the next one), “active” (attached to a running dispatch; undelivered messages reject with code steering when it ends), “closed” (close() was called; pending and later sends reject with code steering).

Complete example and detailed rules.

export type SteeringState = "idle" | "active" | "closed";