refreshes

Create a Flow of refresh events on the SwipeRefreshLayout instance.

Note: Created flow keeps a strong reference to the SwipeRefreshLayout instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

swipeRefreshLayout.refreshes()
.onEach {
// handle refreshed
}
.launchIn(uiScope)