simon.vergauwen
05/09/2019, 2:45 PMunsafe {
runNonBlocking({
fx {
continueOn(Dispatchers.Default)
val (posts) = mPostsApi.getPosts(authToken)
continueOn(Dispatchers.Main)
showPosts(posts)
}.handleErrorWith {
IO(Main) { mView.showGenericErrorAlert() }
}
}) { Unit }
}