xiangcman / blog_comment

博客评论
0 stars 0 forks source link

p/android-%E5%8D%8F%E7%A8%8B%E5%88%86%E6%9E%90/ #2

Open utterances-bot opened 1 week ago

utterances-bot commented 1 week ago

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/