Swift by Sundell cover image

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

Swift by Sundell

CHAPTER

The Concept of Sendable Is More About the Semantic Model

The goal of sendable is to maintain this notion of data isolation for an actor. An actor owns its data and the only way that anyone can look at or affect that data is by going through the actors synchronization mechanism. So what the notion of sendable means is it covers all of those types that are safe to pass into or out of an actor because they can't create any data races. And in fact Swiss actors use this very low level cooperative dispatch queue that we built to go ahead and efficiently schedule actors over to threads with with very low context switching overhead.

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