Reputation: 573
I need to prioritize queued okhttp async requests; what's the recommended way of doing this; passing a custom ExecutorService to the Dispatcher?
It'd be nice to prioritize the requests before they're executed by the ExecutorService, but it looks like there's no way to customize Dispatcher's internal readyCalls Deque, and Dispatcher itself is final (and OkHttpClient.setDispatcher() only takes a Dispatcher, i.e. not an interface).
Upvotes: 0
Views: 563
Reputation: 40623
We're tracking this as Issue 404. If you make your request known there, we'll know to prioritize it accordingly!
Upvotes: 1