1

I saw android's ThreadPoolExecutor implementation with Retrofit somewhere. I am confused what is a logical need of using this executor with retrofit even if retrofit already provides us mechanism of asynchronous api calls, which will be run in different background threads without affecting other api calls?

4

1 回答 1

0

就我而言,服务器配置错误,无法管理同时请求。服务器开发者拒绝在她这边解决这个问题......出于这个原因,我在我的应用程序中添加了一个 ThreadPoolExecutor 在 Retrofit 中,以逐个执行请求。应用程序使用多个改造适配器,这个库不是为此设计的......

于 2016-08-22T13:09:08.220 回答