如何等待okhttp响应而不冻结应用程序
当我使用CountDownLatch时,应用程序会冻结直到收到结果为止,避免这种情况是时尚的吗?
When I use CountDownLatch, the application freezes until the result is received, it is fashionable to avoid this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在另一个线程中进行。另外,您可以在 coroutines
我建议获取数据的数据
You can do it in another thread. Also you can do it in coroutines
I recommend get data with