@@ -18,7 +18,7 @@ import Swift
1818@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
1919extension Task {
2020 @available ( * , deprecated, message: " `Task.Group` was replaced by `ThrowingTaskGroup` and `TaskGroup` and will be removed shortly. " )
21- public typealias Group < TaskResult: Sendable > = ThrowingTaskGroup < TaskResult , Error >
21+ public typealias Group < TaskResult> = ThrowingTaskGroup < TaskResult , Error >
2222
2323 @available ( * , deprecated, message: " `Task.withGroup` was replaced by `withThrowingTaskGroup` and `withTaskGroup` and will be removed shortly. " )
2424 public static func withGroup< TaskResult, BodyResult> (
@@ -81,7 +81,7 @@ extension Task {
8181/// - once the `withTaskGroup` returns the group is guaranteed to be empty.
8282@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
8383@inlinable
84- public func withTaskGroup< ChildTaskResult: Sendable , GroupResult> (
84+ public func withTaskGroup< ChildTaskResult, GroupResult> (
8585 of childTaskResultType: ChildTaskResult . Type ,
8686 returning returnType: GroupResult . Type = GroupResult . self,
8787 body: ( inout TaskGroup < ChildTaskResult > ) async -> GroupResult
@@ -160,7 +160,7 @@ public func withTaskGroup<ChildTaskResult: Sendable, GroupResult>(
160160/// - all tasks remaining in the group will be automatically cancelled.
161161@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
162162@inlinable
163- public func withThrowingTaskGroup< ChildTaskResult: Sendable , GroupResult> (
163+ public func withThrowingTaskGroup< ChildTaskResult, GroupResult> (
164164 of childTaskResultType: ChildTaskResult . Type ,
165165 returning returnType: GroupResult . Type = GroupResult . self,
166166 body: ( inout ThrowingTaskGroup < ChildTaskResult , Error > ) async throws -> GroupResult
@@ -197,7 +197,7 @@ public func withThrowingTaskGroup<ChildTaskResult: Sendable, GroupResult>(
197197/// It is created by the `withTaskGroup` function.
198198@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
199199@frozen
200- public struct TaskGroup < ChildTaskResult: Sendable > {
200+ public struct TaskGroup < ChildTaskResult> {
201201
202202 /// Group task into which child tasks offer their results,
203203 /// and the `next()` function polls those results from.
@@ -457,7 +457,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
457457/// It is created by the `withTaskGroup` function.
458458@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
459459@frozen
460- public struct ThrowingTaskGroup < ChildTaskResult: Sendable , Failure: Error > {
460+ public struct ThrowingTaskGroup < ChildTaskResult, Failure: Error > {
461461
462462 /// Group task into which child tasks offer their results,
463463 /// and the `next()` function polls those results from.
0 commit comments