With Xcode version 13.0 (13A233), the async/await example near the end of Chapter 2 doesn’t work in a playground. If you add the following import
import _Concurrency
to the playground, it works fine.
With Xcode version 13.0 (13A233), the async/await example near the end of Chapter 2 doesn’t work in a playground. If you add the following import
import _Concurrency
to the playground, it works fine.
Interesting, but I thought this import would no longer be needed once Swift 5.5 has been released, which I could verify in the playground using #if swift(>=5.5).
It wasn’t needed when we worked on the book update, unfortunately in the GM and the release version of Xcode you now need to use the import. My best guess is that this will be fixed when the new macOS is out.