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

Struct baseSharedVariable

data/shared_state_variable.go:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29type baseSharedVariable struct {
30 // updatedAtUnixMs tracks the last-known update timestamp for this shared variable.
31 // It is used for staleness checks (TryUpdateIfStale debouncing).
32 //
33 // Semantics: unix milliseconds, monotonic increasing within a process.
34 updatedAtUnixMs atomic.Int64
35}
36
37func (v *baseSharedVariable) IsStale(staleness time.Duration) bool {
38 updatedAt := v.updatedAtUnixMs.Load()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected