Load returns the current state.
()
| 72 | |
| 73 | // Load returns the current state. |
| 74 | func (s *stateMachine) Load() PipelineState { |
| 75 | return PipelineState(s.val.Load()) |
| 76 | } |
| 77 | |
| 78 | // transition moves from expected → target iff the current state is |
| 79 | // expected. Returns true on success. Used so concurrent callers can't |