// State returns the current state the state machine is in and what time it
// entered that state. The State may be nil if Run() has yet to be called.
State returns the current state the state machine is in and what time it
entered that state. The State may be nil if Run() has yet to be called.
// State returns the current state the state machine is in and what time it // entered that state . The State may be nil if Run () has yet to be called .
func (s *stateMachine) State() (*State, time.Time) {
	s.mu.RLock()
	defer s.mu.RUnlock()
	return s.state, s.ts
}
func ( s * stateMachine ) State ( ) ( * State , time . Time ) { s . mu . RLock ( ) defer s . mu . RUnlock ( ) return s . state , s . ts }
State returns the current state the state machine is in and what time it
entered that state.
State returns the current state the state machine is in and what time it entered that state .