MCPcopy Create free account
hub / github.com/erpc/erpc / OnLargeRollback

Method OnLargeRollback

data/shared_state_variable.go:477–481  ·  view source on GitHub ↗
(cb func(currentVal, newVal int64))

Source from the content-addressed store, hash-verified

475}
476
477func (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
483func (c *counterInt64) markFreshAttempt() {
484 c.allocateUpdatedAtMs()

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 1