(state fsm.State)
| 157 | } |
| 158 | |
| 159 | func (s *sequenceState) isStateSchedulable(state fsm.State) bool { |
| 160 | return state != s.initialState && state != sequenceTerminalState && state != sequenceExpiredState && state != sequenceDeadlineState |
| 161 | } |
| 162 | |
| 163 | // initFSM initializes the state machine and installs transition callbacks |
| 164 | // that are triggered when the expression in the sequence matches, it expires |