``` fun refresh() { statusRelay.accept(Status....
# android-architecture
u
Copy code
fun refresh() {
    statusRelay.accept(Status.STARTED)
    call the api
    insert new data <-- here db is refreshed with new page, yet status is still started
    statusRelay.accept(Status.SUCCESS)
}