有没有人知道在新的Swift
async/await
这一块中,TaskGroup async
和spawn
之间有什么不同,还是它们纯粹是同义词?(如果它们是同义词,我更喜欢spawn
。 async
看起来像我们正在打开一个async
块,但实际上并不是这样。)
https://developer.apple.com/documentation/swift/taskgroup/3814850-async
https://developer.apple.com/documentation/swift/taskgroup/3814884-spawn
async
可能已经被弃用了。 - ahezeadd
被弃用了,也许你想说的是那个? - matt