Open utterances-bot opened 1 week ago
协程创建 1 2 3 4 5 6 7 8 9 10 11 12 suspend { Log.d(TAG, "suspend block:") "123" }.createCoroutine(object : Continuation { override val context: CoroutineContext get() = EmptyCoroutineContext override fun resumeWith(result: Result) { val value = result.getOrNull() Log.d(TAG, "resumeWith:$value") } }).resume(Unit) Log.d(TAG, "onCreate")
https://www.xiangcman.fun/p/android-%E5%8D%8F%E7%A8%8B%E5%88%86%E6%9E%90/
Android 协程分析
协程创建 1 2 3 4 5 6 7 8 9 10 11 12 suspend { Log.d(TAG, "suspend block:") "123" }.createCoroutine(object : Continuation { override val context: CoroutineContext get() = EmptyCoroutineContext override fun resumeWith(result: Result) { val value = result.getOrNull() Log.d(TAG, "resumeWith:$value") } }).resume(Unit) Log.d(TAG, "onCreate")
https://www.xiangcman.fun/p/android-%E5%8D%8F%E7%A8%8B%E5%88%86%E6%9E%90/