TommyLemon / Android-ZBLibrary

🔥 Android MVP 快速开发框架,做国内 「示例最全面」「注释最详细」「使用最简单」「代码最严谨」的 Android 开源 UI 框架。 🔥 An Android MVP Framework with many demos, detailed documents, simple usages and strict codes.
Apache License 2.0
5.5k stars 1.38k forks source link

AsyncTask.execute()默认是串行执行,单页面多接口时加载会很慢 #51

Open jizni opened 1 year ago

jizni commented 1 year ago

建议改成AsyncTask.executeOnExecutor()并行执行

TommyLemon commented 1 year ago

感谢建议,可以直接改下源码,贡献一个 PR 哦,开源要大家一起参与才会更美好~ https://github.com/TommyLemon/Android-ZBLibrary/blob/master/ZBLibrary/src/main/java/zuo/biao/library/manager/HttpManager.java#L147

https://github.com/TommyLemon/Android-ZBLibrary/blob/master/ZBLibrary/src/main/java/zuo/biao/library/manager/HttpManager.java#L257

提 PR 步骤可参考 image

image

https://github.com/Tencent/APIJSON/blob/master/CONTRIBUTING.md#%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%80%E5%AE%9A%E8%A6%81%E8%B4%A1%E7%8C%AE%E4%BB%A3%E7%A0%81