Skip to content

Commit 7c52e5f

Browse files
authored
Merge pull request #583 from KaitoMuraoka/fix/concurrency-link
適切なidになるよう修正
2 parents 3b17434 + 200cbf6 commit 7c52e5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language-guide/concurrency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 並行処理\(Concurrency\)
22

3-
最終更新日: 2024/06/26
3+
最終更新日: 2024/08/30
44
原文: https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html
55

66
非同期操作を行う。
@@ -231,7 +231,7 @@ let photos = await withTaskGroup(of: Data.self) { group in
231231

232232
前の例と同じように、この例でも写真ごとに子タスクを作成してダウンロードしています。前の例とは異なり、`for-await-in` ループは次の子タスクの終了を待ち、そのタスクの結果を結果の配列に追加して、すべての子タスクが終了するまで待ち続けます。最後に、タスクグループはダウンロードした写真の配列を全体の結果として返します。
233233

234-
### <a id="unstructured-concurrency">タスクキャンセル\(Task Cancellation\)</a>
234+
### <a id="task_cancellation">タスクキャンセル\(Task Cancellation\)</a>
235235

236236
Swift の並行処理では、協調キャンセルモデルを使用します。各タスクは、実行中の適切な時点でキャンセルされたかどうかをチェックし、キャンセルに適切に応答します。タスクがどのような作業をしているかに応じて、キャンセルに応答することは、通常、次のいずれかを意味します:
237237

0 commit comments

Comments
 (0)