© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
P. FrieseAsynchronous Programming with SwiftUI and Combinehttps://doi.org/10.1007/978-1-4842-8572-5_9

9. Networking with Combine

Peter Friese1  
(1)
Hamburg, Germany
 

We live in a networked world, and most modern applications need to access the network to retrieve information stored on a server running on the Internet (or on the user’s local network).

Even on a superfast connection, a request usually takes several milliseconds. Using blocking I/O and waiting for a response on the foreground thread of the application is not an option, as it would freeze the app and result in a pretty terrible user experience. Users would probably assume your app has died, and ...

Get Asynchronous Programming with SwiftUI and Combine: Functional Programming to Build UIs on Apple Platforms now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.