Swift by Sundell cover image

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

Swift by Sundell

CHAPTER

Async Marked APIs for UI Kits and App Kits

Async await is really great and it looks very elegant when you look at a context where the context itself is also async. But sometimes we might want to start a synchronous call from a synchronous context. And so this is what the task APIs are there for. They allow you to create a task that runs some code asynchronously. It will probably want to go and post back the results to UI at some point later. So here is one of these cases where you actually truly do need the unstructured concurrence that you need to be able to create these new tasks, right?

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner