Can someone recommend a good, modern tutorial on concurrency?

So Thread.sleep being marked as unavailable from async is gibberish?

I wouldn't be so sure:
https://forums.swift.org/t/cooperative-pool-deadlock-when-calling-into-an-opaque-subsystem/

await does not block any thread at all. It suspends function[1]. Then work is scheduled to be run on a thread.


  1. to be completely correct, it marks a potential suspension point, but does not determines if it will actually suspend. ↩︎

2 Likes