async/await in SwiftUI
Jun 21 2021 · Article (35 mins)
…version of Swift concurrency: Update a sample app from WWDC. You’ll take baby steps to convert a much simpler app to learn how async/await and actors help you write safer code. To help you decipher Xcode’s error messages and future-proof you against the inevitable future API changes…
Java, you often use Runnable, Callable and Future. With coroutines, you can use Deferred instead. These are objects that you can manage using the async/await functions. In this chapter, you’ll write code to understand when and how to use this pattern most effectively…
iOS & Swift
Swift Concurrency Continuations: Getting Started
May 26 2023 · Article (25 mins)
Continuations are a powerful part of Swift Concurrency that helps you to convert asynchronous code using delegates and callbacks into code that uses async/await calls, which is exactly what you will do in this article…
…into more detail about how the async/await syntax and the cooperative asynchronous execution work. Additionally, it introduces the usage of "async let" to design concurrent code and the "Task" type which encapsulates asynchronous execution in the modern concurrency model…
In this lesson you will learn the foundational concepts of asynchronous programming in Swift using async and await. You will learn how Swift suspends functions…
Server-Side Swift
Supporting REST and HTML with a gRPC Microservice
Mar 14 2023 · Article (20 mins)
…knows to use the new port you created. Other Options with protoc Swift server code is moving from using Futures based on SwiftNIO to Async/Await. Recently, the grpc-swift team updated the protoc plugins to generate both code patterns. In the next few sections, you’ll learn how to switch…
iOS & Swift
WWDC 2021: Intro to async/await
Jun 22 2021 · Screencast (16 mins)
With WWDC 2021, Apple released a whole bunch of concurrency features with async/await leading the pack. In this video, you'll learn how to use this new language feature but more importantly, you'll learn how it fits into Apple's concurrency landscape…
Android & Kotlin
Kotlin Coroutines: Fundamentals
Feb 14 2024 · Video Course (50 mins)
Learn about async/await, how to use them to execute multiple coroutines in parallel…
iOS & Swift
Migrating to Swift 6 Tutorial
Jun 25 2025 · Article (15 mins)
…with what we got at WWDC 2021 — Swift 5.5’s shiny new structured concurrency framework that helped us write safe code more swiftly with async/await and actors. Swift 6 seemed to break everything, and it felt like a good idea to wait a while. One year later, the migration path…
This section covers the fundamental concepts of thread optimization and memory management in Swift.
It explains the distinction between main and background threads, introduces async/await syntax for asynchronous programming,
and delves into memory management topics such as automatic reference counting (ARC) and handling retain cycles to prevent memory leaks
…layer is and how to: Implement the networking side of a data layer and use it to fetch data. Write asynchronous code with the async/await API. Display fetched data using SwiftUI. Implement a token refresh mechanism. Getting started Open starter project and build and run. You’ll see: Starter…
…build timer functions that can be used to remove old GameObjects. You’ll explore two patterns for writing asynchronous timer functions: coroutines and async/await. Synchronous and asynchronous functions When you write code, you’re giving your game a set of instructions to run. It will complete those instructions…
Android & Kotlin
Chapter in Kotlin Multiplatform by Tutorials
Concurrency
May 7 2025 · Chapter
…were divided into smaller segments that run independently. Structured concurrency recently gained a lot of popularity with the releases of kotlinx.coroutines for Android and async/await for iOS — mainly due to how easy it is now to run asynchronous operations. Different Concurrency Solutions There are multiple Kotlin Multiplatform libraries that support…
…they inherit. In the example above, the request is declared as the basic VNRequest. When it gets instantiated, the appropriate subclass applies. Concurrency With Async/Await By using the async/await pattern instead of completion block handlers, code becomes more readable. Apple has been slowly introducing the new pattern…
iOS & Swift
AsyncSequence & AsyncStream Tutorial for iOS
Jun 29 2022 · Article (20 mins)
…embraced async/await as the newest and safest way to code for concurrency in Swift. You’re loving how eliminating a lot of the nested completion handlers reduces the amount of code you write and simplifies that code’s logic so it’s easier to get it right. And what…
Server-Side Swift
gRPC and Server Side Swift: Getting Started
Mar 4 2022 · Article (35 mins)
…options available but the ones specified above will generate the two swift files for this tutorial. Note: The grpc-swift plugin does not create async/await code by default and does not yet officially support async/await. One of the options for protoc will generate async/await style code based on a proposed…