alibaba / coobjc

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.
https://github.com/alibaba/coobjc
Apache License 2.0
4.03k stars 525 forks source link

await返回以后线程的上下文没有恢复 #101

Open SANDOFTIME opened 4 years ago

SANDOFTIME commented 4 years ago

chan.send_noblock之后,await接受到值,但是之后的线程被改变成新的线程

NianJi commented 4 years ago

Could you privide the code?

SANDOFTIME commented 4 years ago

除主线程外,线程一调用,await之后的新线程并不是线程一而是一个随机的线程

发自我的iPhone

在 2020年6月11日,下午2:39,fengnianji notifications@github.com 写道:

 Could you privide the code?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

alexlee002 commented 2 years ago

This is not a bug。