Join Slack
Powered by
Because atm you’re calling this on the main thread...
# arrow
s
simon.vergauwen
05/09/2019, 2:20 PM
Because atm you’re calling this on the main thread and thus blocking and doing network calls there unless you are on a background thread before reaching this point?
Copy code
runBlocking { fx { val (posts) = mPostsApi.getPosts(authToken)
Open in Slack
Previous
Next