@@ -18,7 +18,7 @@ import Swift
18
18
@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
19
19
extension Task {
20
20
@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 >
22
22
23
23
@available ( * , deprecated, message: " `Task.withGroup` was replaced by `withThrowingTaskGroup` and `withTaskGroup` and will be removed shortly. " )
24
24
public static func withGroup< TaskResult, BodyResult> (
@@ -81,7 +81,7 @@ extension Task {
81
81
/// - once the `withTaskGroup` returns the group is guaranteed to be empty.
82
82
@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
83
83
@inlinable
84
- public func withTaskGroup< ChildTaskResult: Sendable , GroupResult> (
84
+ public func withTaskGroup< ChildTaskResult, GroupResult> (
85
85
of childTaskResultType: ChildTaskResult . Type ,
86
86
returning returnType: GroupResult . Type = GroupResult . self,
87
87
body: ( inout TaskGroup < ChildTaskResult > ) async -> GroupResult
@@ -160,7 +160,7 @@ public func withTaskGroup<ChildTaskResult: Sendable, GroupResult>(
160
160
/// - all tasks remaining in the group will be automatically cancelled.
161
161
@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
162
162
@inlinable
163
- public func withThrowingTaskGroup< ChildTaskResult: Sendable , GroupResult> (
163
+ public func withThrowingTaskGroup< ChildTaskResult, GroupResult> (
164
164
of childTaskResultType: ChildTaskResult . Type ,
165
165
returning returnType: GroupResult . Type = GroupResult . self,
166
166
body: ( inout ThrowingTaskGroup < ChildTaskResult , Error > ) async throws -> GroupResult
@@ -197,7 +197,7 @@ public func withThrowingTaskGroup<ChildTaskResult: Sendable, GroupResult>(
197
197
/// It is created by the `withTaskGroup` function.
198
198
@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
199
199
@frozen
200
- public struct TaskGroup < ChildTaskResult: Sendable > {
200
+ public struct TaskGroup < ChildTaskResult> {
201
201
202
202
/// Group task into which child tasks offer their results,
203
203
/// and the `next()` function polls those results from.
@@ -457,7 +457,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
457
457
/// It is created by the `withTaskGroup` function.
458
458
@available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
459
459
@frozen
460
- public struct ThrowingTaskGroup < ChildTaskResult: Sendable , Failure: Error > {
460
+ public struct ThrowingTaskGroup < ChildTaskResult, Failure: Error > {
461
461
462
462
/// Group task into which child tasks offer their results,
463
463
/// and the `next()` function polls those results from.
0 commit comments