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

Method TryUpdate

data/shared_state_variable.go:24–24  ·  view source on GitHub ↗
(ctx context.Context, newValue int64)

Source from the content-addressed store, hash-verified

22 GetValue() int64
23 TryUpdateIfStale(ctx context.Context, staleness time.Duration, getNewValue func(ctx context.Context) (int64, error)) (int64, error)
24 TryUpdate(ctx context.Context, newValue int64) int64
25 OnValue(callback func(int64))
26 OnLargeRollback(callback func(currentVal, newVal int64))
27}

Implementers 1

counterInt64data/shared_state_variable.go

Calls

no outgoing calls