Avatar
Avatar
Miwa / Ensan
ありがとうございます。ただ、以下のコードは動いていて、2回await xを書くとエラーになります。 struct Test { func test() async { async let x = 42 print(await x) } } (edited)
仕様なのかバグなのかわかりませんが、 async let x に対して await x は現状 1 回だけ呼び出せるみたいですね。