Skip to content

Glossary: Swift Beyond the Basics

OrderServer

A protocol for any server that can receive orders, with one `send` method that uses typed throws to report only `SyncError` values. Code written against it can swap a fake server for a real one without changes.

Where the book teaches it

Related terms

faketyped throwsSendable