April 2026
Intermediate
683 pages
25h 29m
English
In Swift, async functions are the core building blocks or concurrency. An async function is a function that can pause in the middle of its execution to wait for something, without blocking the rest of the app. That something could be, for example, one of the following:
A network response
A large file read from the disk
A timer ticking toward a deadline
A database query
In such cases, you might want to execute the function in a separate thread lest it block the app until the operation is finished.
Multiple async functions may also be triggered in parallel; one async function might be waiting for a network response while another async function might be waiting for database query results, for example. In such a ...
Read now
Unlock full access