Difference returns the difference between two sets of locks. This is helpful to determine what changed between the two sets.
(to PGLocks)
| 113 | // Difference returns the difference between two sets of locks. |
| 114 | // This is helpful to determine what changed between the two sets. |
| 115 | func (l PGLocks) Difference(to PGLocks) (newVal PGLocks, removed PGLocks) { |
| 116 | return slice.SymmetricDifferenceFunc(l, to, func(a, b PGLock) bool { |
| 117 | return a.Equal(b) |
| 118 | }) |
| 119 | } |
nothing calls this directly
no test coverage detected