This is the result ```unsafe { runBlocking { ...
# arrow
s
This is the result
Copy code
unsafe {
    runBlocking {
        fx {
            val posts = !mPostsApi.getPosts(authToken)        
            mView.showPosts(posts)
        }.handleError {
            Main.shift().map { mView.showGenericErrorAlert() }
        }
    }
}
p
this…doesn’t look correct. What abstraction are you using? Either? IO?
s
IO.fx
p
try this
nevermind
hmmm
that shouldn’t work
are you sure it shows the generic error alert?
s
yep....
XD
p
fx { val posts = !mPostsApi.getPosts(authToken) mView.showPosts(posts) }.handleErrorWith { IO(Main) { mView.showGenericErrorAlert() } }
how about that?
s
later i try it and i answer you. I am with another branch now
It compile but the mobile show black window and crash
but this is working
Copy code
handleError {
					IO(Main) { mView.showGenericErrorAlert() }
				}
p
yes because it never calls
mView.showGenericErrorAlert()
I'm sure of that