State returns the current state.
()
| 144 | |
| 145 | // State returns the current state. |
| 146 | func (t *Tracker) State() State { |
| 147 | t.mu.RLock() |
| 148 | defer t.mu.RUnlock() |
| 149 | return t.state |
| 150 | } |
| 151 | |
| 152 | // LastError returns the most recent error recorded by Fail, or nil if a |
| 153 | // clean Set has happened since. |
no outgoing calls