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

刚看了swift5.4更新,await以后会变成关键字? #108

Open JinjunHan opened 3 years ago

JinjunHan commented 3 years ago

To prepare the way for a new concurrency model, the compiler now emits a warning and fix-it for unqualified uses of await as an identifier. Those identifers will be interpreted as the keyword await in a future version of Swift as part of SE-0296.

JinjunHan commented 3 years ago

from https://swift.org/blog/swift-5-4-released/

lbininhbl commented 3 years ago

对,编译器也提醒了。

NianJi commented 3 years ago

swift 5.5 会官方支持 coroutine.

JinjunHan commented 3 years ago

swift 5.5 会官方支持 coroutine.

那下一版更新swift5.5,又得大改动了,要删掉coswift的代码,改成官方的async await

JinjunHan commented 3 years ago

尝试了一下swift5.5的async await,好像只能在iOS15才能用,那感觉就很鸡肋了,所以coswift还是有用处的