Get returns the current sequence number.
()
| 95 | |
| 96 | // Get returns the current sequence number. |
| 97 | func (s *Sequencer) Get() uint64 { |
| 98 | return atomic.LoadUint64(&s.seq) |
| 99 | } |
| 100 | |
| 101 | // Reset removes the sequence value from the registry and sets the sequence number to zero. |
| 102 | func (s *Sequencer) Reset() error { |
no outgoing calls