Swift by Sundell cover image

99: “Structured concurrency”, with special guest Doug Gregor

Swift by Sundell

00:00

Is Async Away Taking on the Responsibility of Managing Asynchronous Tasks?

The way an asynchronous function is called is actually completely different from the way a synchronous function is called. Swift doesn't need to store any other kind of metadata around that call. It's all behind the scenes and it's sort of the translation layer here. You don't even notice this as a programmer, but it allows us to do this very quick suspend and have the OS thread do some completely different work and then resume later on when it's ready.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app