摘要:
Retrofit使用协程发送请求参考文章 :https://www.cnblogs.com/sw-code/p/14451921.html 导入依赖 app的build文件中加入: implementation 'com.squareup.retrofit2:retrofit:2.9.0' impl 阅读全文
posted @ 2021-02-26 14:14
sw-code
阅读(1468)
评论(0)
推荐(0)
摘要:
Retrofit2.6开始增加了对Kotlin协程的支持,可以通过suspend函数进行异步调用。本文简单介绍一下使用Kotlin协程配合Retrofit使用,发起网络请求。 导入依赖 app的build文件中加入: implementation 'com.squareup.retrofit2:re 阅读全文
posted @ 2021-02-26 13:49
sw-code
阅读(5767)
评论(0)
推荐(2)

浙公网安备 33010602011771号