@@ -17,9 +17,9 @@ import Swift
17
17
/// Starts a new scope that can contain a dynamic number of child tasks.
18
18
///
19
19
/// A group *always* waits for all of its child tasks
20
- /// to complete before it returns. Even cancelled tasks must run until
20
+ /// to complete before it returns. Even canceled tasks must run until
21
21
/// completion before this function returns.
22
- /// Cancelled child tasks cooperatively react to cancellation and attempt
22
+ /// Canceled child tasks cooperatively react to cancellation and attempt
23
23
/// to return as early as possible.
24
24
/// After this function returns, the task group is always empty.
25
25
///
@@ -342,14 +342,14 @@ public func _unsafeInheritExecutor_withThrowingTaskGroup<ChildTaskResult, GroupR
342
342
/// A task group becomes canceled in one of the following ways:
343
343
///
344
344
/// - when ``cancelAll()`` is invoked on it,
345
- /// - when the ``Task`` running this task group is cancelled .
345
+ /// - when the ``Task`` running this task group is canceled .
346
346
///
347
347
/// Since a `TaskGroup` is a structured concurrency primitive, cancellation is
348
348
/// automatically propagated through all of its child-tasks (and their child
349
349
/// tasks).
350
350
///
351
351
/// A canceled task group can still keep adding tasks, however they will start
352
- /// being immediately cancelled , and may act accordingly to this. To avoid adding
352
+ /// being immediately canceled , and may act accordingly to this. To avoid adding
353
353
/// new tasks to an already canceled task group, use ``addTaskUnlessCancelled(name:priority:body:)``
354
354
/// rather than the plain ``addTask(name:priority:body:)`` which adds tasks unconditionally.
355
355
///
@@ -551,14 +551,14 @@ extension TaskGroup: Sendable { }
551
551
///
552
552
/// - when ``cancelAll()`` is invoked on it,
553
553
/// - when an error is thrown out of the `withThrowingTaskGroup(...) { }` closure,
554
- /// - when the ``Task`` running this task group is cancelled .
554
+ /// - when the ``Task`` running this task group is canceled .
555
555
///
556
556
/// Since a `ThrowingTaskGroup` is a structured concurrency primitive, cancellation is
557
557
/// automatically propagated through all of its child-tasks (and their child
558
558
/// tasks).
559
559
///
560
560
/// A canceled task group can still keep adding tasks, however they will start
561
- /// being immediately cancelled , and may act accordingly to this. To avoid adding
561
+ /// being immediately canceled , and may act accordingly to this. To avoid adding
562
562
/// new tasks to an already canceled task group, use ``addTaskUnlessCancelled(priority:body:)``
563
563
/// rather than the plain ``addTask(priority:body:)`` which adds tasks unconditionally.
564
564
///
@@ -616,7 +616,7 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
616
616
/// Wait for all of the group's remaining tasks to complete.
617
617
///
618
618
/// If any of the tasks throw, the *first* error thrown is captured
619
- /// and re-thrown by this method although the task group is *not* cancelled
619
+ /// and re-thrown by this method although the task group is *not* canceled
620
620
/// when this happens.
621
621
///
622
622
/// ### Cancelling the task group on first error
0 commit comments