如何检查协程正确?

时间:2018-11-01 12:20:06

标签: android junit4 coroutine kotlinx.coroutines

任务是清除应用程序中的图像缓存。 决定在协程的帮助下确定该应用程序不会挂起。

GlobalScope.launch {
    AppResources.appContext?.let { Glide.get(it).clearMemory() }
}

但是不太了解如何编写此测试。

0 个答案:

没有答案