MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / endRefresh

Method endRefresh

internal/ui/components/app.go:122–124  ·  view source on GitHub ↗

endRefresh releases the refresh guard only if the token matches the current value. If the token doesn't match (stale callback from a superseded refresh), this is a no-op.

(token uint64)

Source from the content-addressed store, hash-verified

120// endRefresh releases the refresh guard only if the token matches the current value.
121// If the token doesn't match (stale callback from a superseded refresh), this is a no-op.
122func (a *App) endRefresh(token uint64) {
123 a.refreshGen.CompareAndSwap(token, 0)
124}
125
126// isRefreshActive returns true if a refresh is currently in progress.
127func (a *App) isRefreshActive() bool {

Callers 5

doManualRefreshMethod · 0.95
doFastRefreshMethod · 0.95
doEnrichNodesMethod · 0.95
autoRefreshDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected