Skip to content

Glossary: Swift Beyond the Basics

defer

A block that runs when the current scope ends, however it ends: at the closing brace, a `return` or a thrown error. The outbox uses it to reset `isSyncing`.

Where the book teaches it

Related terms

reentrancyactor