Skip to content

Glossary: Swift Beyond the Basics

actor

Also written: actors

A reference type that lets only one task use its state at a time. Outside code must `await` its methods. Kettle & Crane's `Outbox` and `FakeServer` are actors, so many tasks can use them without data races.

Where the book teaches it

Related terms

isolatednonisolatedreentrancySendablemain actor