Swift 동시 실행 시작하기

Swift에는 비동기 및 동시 코드를 위한 지원 기능이 내장되어 있어 특히 더 많은 코어가 탑재된 시스템에서 작업의 병렬화를 최적화하는 데 도움이 됩니다. Swift 동시 실행 기능 덕분에 UI 업데이트가 필요한 작은 작업을 더 긴 작업이 백그라운드에서 계속되는 동안 우선적으로 처리할 수 있습니다. Swift 동시 실행 시작 방법, 작업 및 Actor 디버그 방법, 최신 도구 탐색 등에 대해 알아보시기 바랍니다. 스레드와 직접 상호 작용하지 않고 Swift 동시 실행을 사용하여 비동기 및 병렬 작업의 실행을 최적화하는 방법도 살펴보는 시간을 가질 것입니다.

시작하기

Meet async/await in Swift

Swift now supports asynchronous functions — a pattern commonly known as async/await. Discover how the new syntax can make your code easier to read and understand. Learn what happens when a function suspends, and find out how to adapt existing completion handlers to asynchronous functions.

Watch now

Discover concurrency in SwiftUI

Discover how you can use Swift’s concurrency features to build even better SwiftUI apps. We’ll show you how concurrent workflows interact with your ObservableObjects, and explore how you can use them directly in your SwiftUI views and models. Find out how to use await to make your app run...

Watch now

Use async/await with URLSession

Discover how you can adopt Swift concurrency in URLSession using async/await and AsyncSequence, and how you can apply Swift concurrency concepts to improve your networking code.

Watch now

Meet AsyncSequence

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...

Watch now

Swift의 분산된 Actor 소개

분산 시스템의 개발을 간소화하는 Swift의 Actor 모델의 확장인 분산된 Actor를 살펴보겠습니다. 분산된 앱 및 시스템으로 작업할 때 분산된 Actor 격리 및 위치 투명성이 네트워킹, 직렬화 및 기타 전송의 우발적인 복잡성을...

Watch now

Swift Concurrency 시각화 및 최적화

Instruments에서 Swift Concurrency 템플릿을 통해 앱을 최적화하는 방법을 알아보세요. 흔히 발생하는 성능 문제를 논의하고 Instruments를 사용하여 이러한 문제를 찾고 해결하는 방법을 보여드리겠습니다. UI의 응답성을 유지하고 병렬...

Watch now

Swift Async 알고리즘 소개

Apple의 최신 오픈 소스 Swift 패키지인 Swift Async 알고리즘을 확인하세요. Zip, Merge 및 Throttle을 비롯하여 AsyncSequence와 함께 사용할 수 있는 이 패키지의 알고리즘을 알아보겠습니다. 이러한 알고리즘을 사용하여 멋진 메시징 앱을...

Watch now

The Swift Programming Language: Concurrency

모범 사례

Swift concurrency: Update a sample app

Discover Swift concurrency in action: Follow along as we update an existing sample app. Get real-world experience with async/await, actors, and continuations. We’ll also explore techniques for migrating existing code to Swift concurrency over time. To get the most out of this code-along, we...

Watch now

Swift concurrency: Behind the scenes

Dive into the details of Swift concurrency and discover how Swift provides greater safety from data races and thread explosion while simultaneously improving performance. We’ll explore how Swift tasks differ from Grand Central Dispatch, how the new cooperative threading model works, and how to...

Watch now

Protect mutable state with Swift actors

Data races occur when two separate threads concurrently access the same mutable state. They are trivial to construct, but are notoriously hard to debug. Discover how you can stop these data races in their tracks with Swift actors, which help synchronize access to data in your code. Discover how...

Watch now

Explore structured concurrency in Swift

When you have code that needs to run at the same time as other code, it’s important to choose the right tool for the job. We'll take you through the different kinds of concurrent tasks you can create in Swift, show you how to create groups of tasks, and find out how to cancel tasks in progress....

Watch now

Swift Concurrency를 사용하여 데이터 경합 제거

Swift Concurrency의 핵심 개념 중 하나인 Task 격리 및 Actor 격리에 대해 함께 알아보겠습니다. 데이터 경합을 제거하는 Swift의 접근 방식을 소개하고 이것이 앱 아키텍처에 미치는 영향에 대해 안내합니다. 또한 코드에서 원자성의...

Watch now

Updating an App to Use Swift Concurrency