刚看了swift5.4更新,await以后会变成关键字?
JinjunHan opened this issue · comments
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.
对,编译器也提醒了。
swift 5.5 会官方支持 coroutine.
swift 5.5 会官方支持 coroutine.
那下一版更新swift5.5,又得大改动了,要删掉coswift的代码,改成官方的async await
尝试了一下swift5.5的async await,好像只能在iOS15才能用,那感觉就很鸡肋了,所以coswift还是有用处的