Concurrent returns true when the two vectors are concurrent.
(b Vector)
| 211 | |
| 212 | // Concurrent returns true when the two vectors are concurrent. |
| 213 | func (v Vector) Concurrent(b Vector) bool { |
| 214 | comp := v.Compare(b) |
| 215 | return comp == ConcurrentGreater || comp == ConcurrentLesser |
| 216 | } |
| 217 | |
| 218 | // Counter returns the current value of the given counter ID. |
| 219 | func (v Vector) Counter(id ShortID) uint64 { |