Hello, good morning. I have found this problem. I ...
# arrow
s
Hello, good morning. I have found this problem. I can´t use continueOn inside the handleError. Then my code produce an error
java.lang.RuntimeException: Can't toast on a thread that has not called Looper.prepare()
Copy code
unsafe {
    runBlocking {
        fx {
            val posts = !mPostsApi.getPosts(authToken)        
             mView.showPosts(posts)
        }.handleError {
            continueOn(Main)
            mView.showGenericErrorAlert()
        }
    }
}