(initialVal int64, r refreshResult)
| 490 | } |
| 491 | |
| 492 | func (c *counterInt64) applyRefreshResult(initialVal int64, r refreshResult) (int64, error) { |
| 493 | if r.err != nil { |
| 494 | c.markFreshAttempt() |
| 495 | return initialVal, r.err |
| 496 | } |
| 497 | updated := c.processNewValue(UpdateSourceTryUpdateIfStale, r.val) |
| 498 | if updated { |
| 499 | c.scheduleBackgroundPushCurrent() |
| 500 | } |
| 501 | return c.value.Load(), nil |
| 502 | } |
| 503 | |
| 504 | func (c *counterInt64) continueAsyncRefresh(resultCh <-chan refreshResult) { |
| 505 | go func() { |
no test coverage detected