IsTerminal reports whether the status represents a final state that should not be overwritten by stale callbacks.
()
| 42 | // IsTerminal reports whether the status represents a final state |
| 43 | // that should not be overwritten by stale callbacks. |
| 44 | func (s Status) IsTerminal() bool { |
| 45 | return s.Priority() > 0 |
| 46 | } |
| 47 | |
| 48 | // Priority returns a numeric ordering used to prevent stale callbacks |
| 49 | // from regressing a step's status. Higher values win over lower ones. |
no test coverage detected