Filters

Hide filters
Platform
Content Type
Difficulty

All Tutorials · 55 Results

async/await
Server-Side Swift
async/await in Server-Side Swift and Vapor
Learn how Swift’s new async/await functionality can be used to make your existing EventLoopFuture-based Vapor 4 code more concise and readable…
iOS & Swift
Concurrency Demystified

15 more results for 'async/await'

Show all
…into async/await details…
iOS & Swift
async/await in SwiftUI
…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…
Android & Kotlin
Kotlin Coroutines by Tutorials

3 more results for 'async/await'

Show all
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
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…
iOS & Swift
Modern Concurrency in Swift

13 more results for 'async/await'

Show all
…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…
iOS & Swift
Advanced Swift Concurrency

8 more results for 'async/await'

Show all
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
…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
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

2 more results for 'async/await'

Show all
Learn about async/await, how to use them to execute multiple coroutines in parallel…
iOS & Swift
Migrating to Swift 6 Tutorial
…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…
iOS & Swift New
Performance Optimization

6 more results for 'async/await'

Show all
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
iOS & Swift
Real-World iOS by Tutorials

2 more results for 'async/await'

Show all
…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…
iOS & Swift
SwiftUI Cookbook

2 more results for 'async/await'

Show all
Learn how to implement Swift concurrency using async/await
iOS & Swift
Announcing Modern Concurrency in Swift, First Edition!
Write modern, robust asynchronous code in Swift with async/await, tasks, actors, and everything in between…
Game Tech

Chapter in Unity Apprentice

Asynchronous Functions, Coroutines & Object Pooling

…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

…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…
iOS & Swift New
Vision Framework

5 more results for 'async/await'

Show all
…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
…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
…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…