manualRefresh refreshes all data manually. Acquires the refresh guard and delegates to doManualRefresh.
()
| 42 | // manualRefresh refreshes all data manually. |
| 43 | // Acquires the refresh guard and delegates to doManualRefresh. |
| 44 | func (a *App) manualRefresh() { |
| 45 | token, ok := a.startRefresh() |
| 46 | if !ok { |
| 47 | return |
| 48 | } |
| 49 | a.doManualRefresh(token) |
| 50 | } |
| 51 | |
| 52 | // doManualRefresh is the internal implementation of a full refresh. |
| 53 | // Caller must have already acquired the refresh guard (token != 0). |
no test coverage detected