(cb func(currentVal, newVal int64))
| 475 | } |
| 476 | |
| 477 | func (c *counterInt64) OnLargeRollback(cb func(currentVal, newVal int64)) { |
| 478 | c.callbackMu.Lock() |
| 479 | defer c.callbackMu.Unlock() |
| 480 | c.largeRollbackCallbacks = append(c.largeRollbackCallbacks, cb) |
| 481 | } |
| 482 | |
| 483 | func (c *counterInt64) markFreshAttempt() { |
| 484 | c.allocateUpdatedAtMs() |