stojan
05/10/2020, 8:47 AMfx
block I can use continueOn
with <http://dispatchers.io|dispatchers.io>()
but also <http://Dispatchers.IO|Dispatchers.IO>
or I can mix is there a preferred way? is there any difference between the two? (I am also using the coroutines integration to run the IO)
IO.fx {
effect { _viewState.postValue(ViewState.Loading) }.bind()
continueOn(dispatchers().io()) // dispatchers from IO
val repositoryDto: RepositoryDto = effect { service.getRepository() }.bind()
continueOn(Dispatchers.Default) // Dispatchers from Coroutines
ViewState.Content(repositoryDto)
}
simon.vergauwen
05/10/2020, 9:05 AMDispatchers
for their testing support, we currently don’t have such support yet. I’d great to have in Arrow Fx too.stojan
05/10/2020, 9:40 AMsimon.vergauwen
05/10/2020, 9:53 AMsimon.vergauwen
05/10/2020, 9:54 AMFiber
question. I’m trying to find better APIs to deal with this issue, but we get little feedback so it’s hard to improve and iterate to better APIs.stojan
05/10/2020, 11:27 AMsimon.vergauwen
05/10/2020, 11:50 AM