网站首页
编程语言
数据库
系统相关
其他分享
编程问答
growZone
2024-09-03
Android协程的使用场景
importkotlinx.coroutines.Dispatchersimportkotlinx.coroutines.delayimportkotlinx.coroutines.withContextsuspendfunallPlants():List<Plant>=withContext(Dispatchers.Default){delay(1500)valresult=sunflowerService.getA