// Terminal states will never run and cannot transition to a non-terminal
// state.
Terminal states will never run and cannot transition to a non-terminal
state.
// Terminal states will never run and cannot transition to a non - terminal // state .
func (s StateCode) Terminal() bool {
	switch s {
	case Runnable, Sleeping, Paused, Fault:
		return false
	case Completed, Killed, Failed:
		return true
	default:
		metafora.Error("unknown state: ", s)
		return false
	}
}
func ( s StateCode ) Terminal ( ) bool { switch s { case Runnable , Sleeping , Paused , Fault : return false case Completed , Killed , Failed : return true default : metafora . Error ( " " , s ) return false } }
Terminal states will never run and cannot transition to a non-terminal
state.
Terminal states will never run and cannot transition to a non - terminal state .