前言
- launch源码中了解了,startCoroutineCancellable->createCoroutineUnintercepted->调用SuspendLambda内部类中的create方法
- 协程创建之后,如何和线程产生关联?
Dispatchers
createCoroutineUnintercepted中的intercepted方法
- Dispatchers.Default,Dispatchers.IO,Dispatchers.Unconfined,4
- CoroutineDispatcher,3
- ContinuationInterceptor,2
- CoroutineContext,1