coobjc provides coroutine support for Objective-C and Swift. We added await method、generator and actor model like C#、Javascript and Kotlin. For convenience, we added coroutine categories for some Foundation and UIKit API in cokit framework like NSFileManager, JSON, NSData, UIImage etc. We also add tuple support in coobjc.
COCoroutine *coObj = [[self alloc] initWithBlock:block onQueue:queue]; coObj.queue = queue; 实例化的时候 已经给 .queue 赋值了 为什么还要再单独赋值一次呢 ?