Abstract
In Chapter 6, we learned about actors. Actors are reference types that synchronize their own internal state, so it is safe to mutate them from different threads. This is done by guaranteeing that only one task or thread can mutate the actor’s state at a time. Actors are sendable types meant to be used in a concurrent context. Actors are types that you instantiate and, for the most part, treat as normal classes. But what happens when we need something that is always guaranteed to run on the same thread, but when it may be spread out, even across different files?
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2023 Andrés Ibañez Kautsch
About this chapter
Cite this chapter
Kautsch, A.I. (2023). The Main Actor & Final Actors. In: Modern Concurrency on Apple Platforms. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-8695-1_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-8695-1_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-8694-4
Online ISBN: 978-1-4842-8695-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)