Current returns the current state of the FSM.
()
| 206 | |
| 207 | // Current returns the current state of the FSM. |
| 208 | func (f *FSM) Current() string { |
| 209 | f.stateMu.RLock() |
| 210 | defer f.stateMu.RUnlock() |
| 211 | return f.current |
| 212 | } |
| 213 | |
| 214 | // Is returns true if state is the current state. |
| 215 | func (f *FSM) Is(state string) bool { |
no outgoing calls