
99: “Structured concurrency”, with special guest Doug Gregor
Swift by Sundell
Async Await - Tasks
A task is essentially a logical threat of execution. It's independent for many like operating system thread, but instead a task is the context in which you run some code and make some calls. So generally speaking, when you're calling a synchronous code from other asynchronous code, you don't really need to think about it. But if you need to initiate new work, like you want to create some new concurrently running thing bit of code and maybe get the result later, well, then you will create a task.
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.