@@ -142,6 +142,7 @@ public func withTaskGroup<ChildTaskResult: Sendable, GroupResult>(
142
142
/// - once the `withTaskGroup` returns the group is guaranteed to be empty.
143
143
/// - if the body throws:
144
144
/// - all tasks remaining in the group will be automatically cancelled.
145
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
145
146
public func withThrowingTaskGroup< ChildTaskResult: Sendable , GroupResult> (
146
147
of childTaskResultType: ChildTaskResult . Type ,
147
148
returning returnType: GroupResult . Type = GroupResult . self,
@@ -189,6 +190,7 @@ public func withThrowingTaskGroup<ChildTaskResult: Sendable, GroupResult>(
189
190
/// A task group serves as storage for dynamically spawned tasks.
190
191
///
191
192
/// It is created by the `withTaskGroup` function.
193
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
192
194
public struct TaskGroup < ChildTaskResult: Sendable > {
193
195
194
196
private let _task : Builtin . NativeObject
@@ -427,6 +429,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
427
429
/// child tasks.
428
430
///
429
431
/// It is created by the `withTaskGroup` function.
432
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
430
433
public struct ThrowingTaskGroup < ChildTaskResult: Sendable , Failure: Error > {
431
434
432
435
private let _task : Builtin . NativeObject
@@ -685,6 +688,7 @@ extension TaskGroup: AsyncSequence {
685
688
/// after any task completes by throwing an error.
686
689
///
687
690
/// - SeeAlso: `TaskGroup.next()`
691
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
688
692
public struct Iterator : AsyncIteratorProtocol {
689
693
public typealias Element = ChildTaskResult
690
694
@@ -738,6 +742,7 @@ extension ThrowingTaskGroup: AsyncSequence {
738
742
/// throwing an error, no further task results are returned.
739
743
///
740
744
/// - SeeAlso: `ThrowingTaskGroup.next()`
745
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
741
746
public struct Iterator : AsyncIteratorProtocol {
742
747
public typealias Element = ChildTaskResult
743
748
0 commit comments