Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnrecognizedState = xerrors.Define("unrecognized state")
)
Functions ¶
Types ¶
type FSM ¶
type FSM struct { // CloseContext allows to specify the context when entering the close state. // If not specify CloseContext, then entering the close state will be used same context. CloseContext func() (context.Context, context.CancelFunc) // DisableErrorOutput allows to disable writing the error to stderr. DisableErrorOutput bool // contains filtered or unexported fields }
func (*FSM) SignalHandling ¶
SignalHandling handles specifying signal. Deprecated.
Click to show internal directories.
Click to hide internal directories.