@@ -63,7 +63,7 @@ import Swift
63
63
/// For tasks that need to handle cancellation by throwing an error,
64
64
/// use the `withThrowingTaskGroup(of:returning:body:)` method instead.
65
65
@available ( SwiftStdlib 5 . 1 , * )
66
- #if !$ Embedded
66
+ #if !hasFeature( Embedded)
67
67
@backDeployed ( before: SwiftStdlib 6.0 )
68
68
#endif
69
69
@inlinable
@@ -200,7 +200,7 @@ public func _unsafeInheritExecutor_withTaskGroup<ChildTaskResult, GroupResult>(
200
200
/// which gives you a chance to handle the individual error
201
201
/// or to let the group rethrow the error.
202
202
@available ( SwiftStdlib 5 . 1 , * )
203
- #if !$ Embedded
203
+ #if !hasFeature( Embedded)
204
204
@backDeployed ( before: SwiftStdlib 6.0 )
205
205
#endif
206
206
@inlinable
@@ -596,7 +596,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
596
596
///
597
597
/// - Returns: The value returned by the next child task that completes.
598
598
@available ( SwiftStdlib 5 . 1 , * )
599
- #if !$ Embedded
599
+ #if !hasFeature( Embedded)
600
600
@backDeployed ( before: SwiftStdlib 6.0 )
601
601
#endif
602
602
public mutating func next( isolation: isolated ( any Actor ) ? = #isolation) async -> ChildTaskResult ? {
@@ -616,7 +616,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
616
616
/// Await all of the pending tasks added this group.
617
617
@usableFromInline
618
618
@available ( SwiftStdlib 5 . 1 , * )
619
- #if !$ Embedded
619
+ #if !hasFeature( Embedded)
620
620
@backDeployed ( before: SwiftStdlib 6.0 )
621
621
#endif
622
622
internal mutating func awaitAllRemainingTasks( isolation: isolated ( any Actor ) ? = #isolation) async {
@@ -758,7 +758,7 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
758
758
/// Await all the remaining tasks on this group.
759
759
@usableFromInline
760
760
@available ( SwiftStdlib 5 . 1 , * )
761
- #if !$ Embedded
761
+ #if !hasFeature( Embedded)
762
762
@backDeployed ( before: SwiftStdlib 6.0 )
763
763
#endif
764
764
internal mutating func awaitAllRemainingTasks( isolation: isolated ( any Actor ) ? = #isolation) async {
@@ -1038,7 +1038,7 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
1038
1038
///
1039
1039
/// - SeeAlso: `nextResult()`
1040
1040
@available ( SwiftStdlib 5 . 1 , * )
1041
- #if !$ Embedded
1041
+ #if !hasFeature( Embedded)
1042
1042
@backDeployed ( before: SwiftStdlib 6.0 )
1043
1043
#endif
1044
1044
public mutating func next( isolation: isolated ( any Actor ) ? = #isolation) async throws -> ChildTaskResult ? {
0 commit comments