PragmaticBookshelf

PragmaticBookshelf

Devtalk Sponsor

The Curious Case of the Async Cafe (PragProg)

A quirky, fast-paced tour of the components of modern concurrency in Swift.

Daniel H Steinberg

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 in to how and when you should use them and 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.

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.

This work was written and produced entirely by the author. We are proud to be distributing it.


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.


Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

First Post!

bot

bot

Corresponding tweet for this thread:

Share link for this tweet.

Popular Mac Os topics Top

AstonJ
Anyone else experience bugs with macOS? I have two that are annoying me… Every now and again after waking from sleep, Safari CPU cons...
New
First poster: ohm
Docker fails to launch on Apple Silicon · Issue #4733 · docker/for-mac. Fails to launch on Apple Silicon (unsurprisingly given it's so n...
New
CommunityNews
Over the past decade, a large and opaque industry has been amassing increasing amounts of personal data.1,2 A complex ecosystem of websi...
New
First poster: SmithyTT
Joe Biden had a question for Tim Cook: Why, the then-vice president wanted to know, couldn’t Apple make the iPhone in the U.S.? It was Ja...
New
abhimohata
I am intending to show an alert message in macOS through a C++ based application. I am using CFUserNotificationDisplayAlert for the same....
New
AstonJ
Just writing this up in case it helps anyone else because it wasn’t automatic. First, connect you iPad to your Mac via a cable. On your...
New
First poster: bot
GitHub - ExistentialAudio/BlackHole: BlackHole is a modern macOS virtual audio driver that allows applications to pass audio to other app...
New
First poster: bot
Create macOS or Linux virtual machines - WWDC22 - Videos - Apple Developer. Learn how you can use the Virtualization framework to quickl...
New
New
AstonJ
Here are some easy options on how to run Stable Diffusion on a Mac with Apple Silicon: DiffusionBee The Ultimate Suite of Creative AI ...
New

Other popular topics Top

Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
AstonJ
SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
New
New
AstonJ
We have a thread about the keyboards we have, but what about nice keyboards we come across that we want? If you have seen any that look n...
New
PragmaticBookshelf
“Finding the Boundaries” Hero’s Journey with Noel Rappin @noelrappin Even when you’re ultimately right about what the future ho...
New
AstonJ
If you are experiencing Rails console using 100% CPU on your dev machine, then updating your development and test gems might fix the issu...
New
First poster: joeb
The File System Access API with Origin Private File System. WebKit supports new API that makes it possible for web apps to create, open,...
New
DevotionGeo
I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New
PragmaticBookshelf
Author Spotlight: Bruce Tate @redrapids Programming languages always emerge out of need, and if that’s not always true, they’re defin...
New