Increment increments the sequence number atomically.
()
| 90 | |
| 91 | // Increment increments the sequence number atomically. |
| 92 | func (s *Sequencer) Increment() { |
| 93 | atomic.AddUint64(&s.seq, 1) |
| 94 | } |
| 95 | |
| 96 | // Get returns the current sequence number. |
| 97 | func (s *Sequencer) Get() uint64 { |
no outgoing calls