Avatar
蛇足かもしれませんが、async letの挙動についてはここら辺で解説されてますね(async let時点で処理が開始する)。出てくるスライドが動きを把握するのにわかりやすいかなーと個人的に思ってます。 https://developer.apple.com/videos/play/wwdc2021/10134/?time=0340 内部ではAsyncLetが使われているみたいですね。 https://github.com/apple/swift/blob/fc67ba57f2ad1ca4ce3e3f98fa4ba6114d4de3c7/include/swift/ABI/AsyncLet.h (edited)
When you have code that needs to run at the same time as other code, it's important to choose the right tool for the job. We'll take you...
The Swift Programming Language. Contribute to apple/swift development by creating an account on GitHub.
9:37 PM
便乗して質問なのですが…😅、テストを書いている時にawaitをautoclosureで使えないので、XCTAssertEqualなどに入れる前に変数にawaitの結果を入れているのですが、何かもっと良い方法はありますでしょうか? await' in an autoclosure that does not support concurrency (edited)