You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tryawaitwithThrowingTaskGroup(of: resultType){ group in
30
+
tryawaitbody(&group)
31
+
}
32
+
}
33
+
}
34
+
35
+
18
36
/// Starts a new task group which provides a scope in which a dynamic number of
19
37
/// tasks may be spawned.
20
38
///
@@ -206,8 +224,19 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
206
224
self._task = task
207
225
self._group = group
208
226
}
209
-
210
-
/// Add a child task to the group.
227
+
228
+
@available(*, deprecated, message:"`Task.Group.add` has been replaced by `TaskGroup.spawn` or `TaskGroup.spawnUnlessCancelled` and will be removed shortly.")
@available(*, deprecated, message:"`Task.Group.add` has been replaced by `(Throwing)TaskGroup.spawn` or `(Throwing)TaskGroup.spawnUnlessCancelled` and will be removed shortly.")
0 commit comments