Time for getbux.com to upgrade to an official release!
Angelo Suzuki
21

Listener messages are called on a background thread since OkHttp is agnostic with respect to Android. If you want them on the main thread, for example, it should be easy to post them to a Handler. You don’t want to be spending too much time in the callbacks since you’re on the same thread as the reader and so you’ll be preventing other messages from being processed.

Like what you read? Give Jake Wharton a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.