Thanks for all. This is my code result if someone ...
# arrow
s
Thanks for all. This is my code result if someone need it
Copy code
private fun loadPosts(val authToken: String) {  
    fx {
        continueOn(Dispatchers.Default)
        val (posts) = mPostsApi.getPosts(authToken)
        continueOn(Dispatchers.Main)
        showPosts(posts)
    }.handleError {
        IO(Main) { mView.showGenericErrorAlert() }
    }.unsafeRunAsync {}
}