coobjc icon indicating copy to clipboard operation
coobjc copied to clipboard

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

Open JinjunHan opened this issue 4 years ago • 5 comments
trafficstars

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 avatar Apr 27 '21 06:04 JinjunHan

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

JinjunHan avatar Apr 27 '21 06:04 JinjunHan

对,编译器也提醒了。

lbininhbl avatar Apr 29 '21 02:04 lbininhbl

swift 5.5 会官方支持 coroutine.

NianJi avatar Apr 29 '21 02:04 NianJi

swift 5.5 会官方支持 coroutine.

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

JinjunHan avatar Apr 29 '21 02:04 JinjunHan

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

JinjunHan avatar Jun 28 '21 02:06 JinjunHan