Pages: 574
Published: March 2023
ISBN: 9781944994044
In Print
Swift’s new async/await family is a language level solution for asynchronous and concurrent code. This book introduces the new keywords and additions to the Swift Standard Library, digs into how and when you should use them, and tells you what pitfalls to avoid. You’ll learn to replace traditional approaches to working with callbacks and concurrency with simpler code that is easier to read and reason about.
This work was written and produced entirely by the author. We are proud to be distributing it.
PDF for desktop/tablets
epub for Apple Books, e-readers
Get all eBook formats here for $30.00 (USD)
Swift’s solution to asynchronous and concurrent code is now part of the language itself. The new syntax, which in the past was complicated, fragmented, or deeply nested, is easier to read and follows a logical flow. With async/await you’ll focus on tasks instead of threads or even queues.
The Curious Case of the Async Cafe is a quirky, fast-paced tour of the components of modern concurrency in Swift: async; await; Tasks; using continuations to replace and wrap delegates and closure-based APIs; AsyncSequences and AsyncStreams; structured concurrency using async let and Task Groups; and, of course, actors.
You need the latest publicly shipping version of Xcode running on your Mac. At the time of publication this is Xcode 14.2.
Source code, Errata, Typos, Suggestions
Releases:
Daniel H Steinberg is the author of more than a dozen books including the best selling books A Combine Kickstart, A SwiftUI Kickstart, A Swift Kickstart, Second Edition, A Functional Programming Kickstart, and Dear Elena. He has written apps for the iPhone and the iPad since the SDKs first appeared and has written programs for the Mac all the way back to System 7.
Daniel presents iOS, Functional Programming, SwiftUI, and Swift training and consults through his company Dim Sum Thinking. When he’s not coding or talking about coding for the Mac, the iPhone, and the iPad he’s probably cooking, baking bread, or hanging out with friends. Details on his training and speaking are on the Dim Sum Thinking website.
PDF for desktop/tablets
epub for Apple Books, e-readers
Get all eBook formats here for $30.00 (USD)
Pages: 574
Published: March 2023
ISBN: 9781944994044
Edition: 1
In Print