Skip to Content
Modern Concurrency on Apple Platforms: Using async/await with Swift
book

Modern Concurrency on Apple Platforms: Using async/await with Swift

by Andrés Ibañez Kautsch
November 2022
Intermediate to advanced content levelIntermediate to advanced
213 pages
3h 46m
English
Apress
Content preview from Modern Concurrency on Apple Platforms: Using async/await with Swift
© Andrés Ibañez Kautsch 2023
A. I. KautschModern Concurrency on Apple Platformshttps://doi.org/10.1007/978-1-4842-8695-1_1

1. Introduction

Andrés Ibañez Kautsch1  
(1)
La Paz, Bolivia
 
Programmers are used to writing programs that are executed in a linear fashion. As you write, test, and execute your program, you expect your instructions to run in the order that you wrote them. In Listing 1-1, you have a program that will first assign a variable a to the number 2. It will then assign a variable b to the number 3, followed by assigning a variable sum, the sum of a + b, and it will finally print a result to the console. There is no way this program will work if you try to print(sum) before you even managed to calculate the value for sum.
let a = 2
let ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Asynchronous Programming with SwiftUI and Combine: Functional Programming to Build UIs on Apple Platforms

Asynchronous Programming with SwiftUI and Combine: Functional Programming to Build UIs on Apple Platforms

Peter Friese
Concurrency in Go

Concurrency in Go

Katherine Cox-Buday

Publisher Resources

ISBN: 9781484286951Purchase LinkPublisher Website