Skip to content

Commit 92615f0

Browse files
committed
[Docs] Minor rewording of Task docs, easier to read
1 parent bb9b4e4 commit 92615f0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stdlib/public/Concurrency/Task.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ import Swift
127127
/// await Actor().start()
128128
/// ```
129129
///
130-
/// Note that there is nothing, other than the Task's use of `self` retaining the actor,
131-
/// And that the start method immediately returns, without waiting for the unstructured `Task` to finish.
132-
/// So once the task is completed and its closure is destroyed, the strong reference to the "self" of the actor is also released allowing the actor to deinitialize as expected.
130+
/// Note that the actor is only retained by the start() method's use of `self`,
131+
/// and that the start method immediately returns, without waiting for the
132+
/// unstructured `Task` to finish. Once the task is completed and its closure is
133+
/// destroyed, the strong reference to the actor is also released allowing the
134+
/// actor to deinitialize as expected.
133135
///
134136
/// Therefore, the above call will consistently result in the following output:
135137
///

0 commit comments

Comments
 (0)