Versions in this module Expand all Collapse all v2 v2.0.0 Oct 8, 2026 Changes in this version + const StateDestroyed + const StateErrored + const StateExecTTLReached + const StateIdleTTLReached + const StateInactive + const StateInvalid + const StateMaxJobsReached + const StateMaxMemoryReached + const StateReady + const StateStopped + const StateStopping + const StateTTLReached + const StateWorking + type Fsm struct + func NewFSM(initialState int64, log *slog.Logger) *Fsm + func (s *Fsm) Compare(state int64) bool + func (s *Fsm) CurrentState() int64 + func (s *Fsm) IsActive() bool + func (s *Fsm) LastUsed() uint64 + func (s *Fsm) NumExecs() uint64 + func (s *Fsm) RegisterExec() + func (s *Fsm) SetLastUsed(lu uint64) + func (s *Fsm) String() string + func (s *Fsm) Transition(to int64) + func (s *Fsm) TransitionFrom(from, to int64) bool v2.0.0-beta.1 Mar 20, 2026 Other modules containing this package github.com/roadrunner-server/pool