fun refresh(force: Boolean): Single<RefreshResult>
Manually perform a refresh of the cache.
Ideal in these scenarios:
UIRefreshControl
in a UITableView
indicating to refresh.
IllegalStateException
- If requirements have not yet been set for the OnlineRepository. OnlineRepository cannot refresh it it does not know what to refresh.
RuntimeException
- If calling after calling dispose.