Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions language-guide/concurrency.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 並行処理\(Concurrency\)

最終更新日: 2024/08/30
最終更新日: 2025/02/01
原文: https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html

非同期操作を行う。
Expand All @@ -19,7 +19,7 @@ Swift の言語サポートを使用せずに並行処理を書くことは可
```swift
listPhotos(inGallery: "夏休み") { photoNames in
let sortedNames = photoNames.sorted()
let name = sortedNames[1]
let name = sortedNames[0]
downloadPhoto(named: name) { photo in
show(photo)
}
Expand Down Expand Up @@ -52,7 +52,7 @@ func listPhotos(inGallery name: String) async -> [String] {
```swift
let photoNames = await listPhotos(inGallery: "夏休み")
let sortedNames = photoNames.sorted()
let name = sortedNames[1]
let name = sortedNames[0]
let photo = await downloadPhoto(named: name)
show(photo)
```
Expand Down