File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ import Swift
101
101
/// var result: Work?
102
102
///
103
103
/// deinit {
104
- /// assert(work != nil)
105
104
/// // even though the task is still retained,
106
105
/// // once it completes it no longer causes a reference cycle with the actor
107
106
///
@@ -124,7 +123,7 @@ import Swift
124
123
/// And using it like this:
125
124
///
126
125
/// ```
127
- /// await Actor ().start()
126
+ /// await Worker ().start()
128
127
/// ```
129
128
///
130
129
/// Note that the actor is only retained by the start() method's use of `self`,
@@ -135,7 +134,7 @@ import Swift
135
134
///
136
135
/// Therefore, the above call will consistently result in the following output:
137
136
///
138
- /// ```
137
+ /// ```other
139
138
/// start task work
140
139
/// completed task work
141
140
/// deinit actor
Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
545
545
/// to wait for all the child tasks to complete,
546
546
/// collecting the values they returned:
547
547
///
548
- /// while let first = try await group.next() {
548
+ /// while let value = try await group.next() {
549
549
/// collected += value
550
550
/// }
551
551
/// return collected
You can’t perform that action at this time.
0 commit comments