Back to Browse

WWDC21: Meet AsyncSequence | Apple

1.9K views
Jan 21, 2025
14:21

Iterating over a sequence of values over time is now as easy as writing a “for” loop. Find out how the new AsyncSequence protocol enables a natural, simple syntax for iterating over anything from notifications to bytes being streamed from a server. We'll also show you how to adapt existing code to provide asynchronous sequences of your own. To get the most out of this session, we recommend first watching “Meet async/await in Swift.” Explore related documentation, sample code, and more: SE-0314: AsyncStream and AsyncThrowingStream: https://github.com/apple/swift-evolution/blob/main/proposals/0314-async-stream.md SE-0298: Async/Await: Sequences: https://github.com/apple/swift-evolution/blob/main/proposals/0298-asyncsequence.md The Swift Programming Language: Concurrency: https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html Compose advanced models with Create ML Components: https://developer.apple.com/videos/play/wwdc2022/10020 Meet Swift Async Algorithms: https://developer.apple.com/videos/play/wwdc2022/110355 Create a more responsive media app: https://developer.apple.com/videos/play/wwdc2022/110379 Use async/await with URLSession: https://developer.apple.com/videos/play/wwdc2021/10095 What's new in Foundation: https://developer.apple.com/videos/play/wwdc2021/10109 Meet async/await in Swift: https://developer.apple.com/videos/play/wwdc2021/10132 Explore structured concurrency in Swift: https://developer.apple.com/videos/play/wwdc2021/10134 More Apple Developer resources: Video sessions: https://apple.co/VideoSessions Documentation: https://apple.co/DeveloperDocs Forums: https://apple.co/DeveloperForums App: https://apple.co/DeveloperApp

Download

0 formats

No download links available.

WWDC21: Meet AsyncSequence | Apple | NatokHD