Skip to content

Commit 4c770b4

Browse files
[5.5] Fix signature mismatch on _taskGroupAttachChild
1 parent 78c595b commit 4c770b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stdlib/public/Concurrency/TaskGroup.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
254254
flags.bits, _group, operation)
255255

256256
// Attach it to the group's task record in the current task.
257-
_ = _taskGroupAttachChild(group: _group, child: childTask)
257+
_taskGroupAttachChild(group: _group, child: childTask)
258258

259259
// Enqueue the resulting job.
260260
_enqueueJobGlobal(Builtin.convertTaskToJob(childTask))
@@ -299,7 +299,7 @@ public struct TaskGroup<ChildTaskResult: Sendable> {
299299
flags.bits, _group, operation)
300300

301301
// Attach it to the group's task record in the current task.
302-
_ = _taskGroupAttachChild(group: _group, child: childTask)
302+
_taskGroupAttachChild(group: _group, child: childTask)
303303

304304
// Enqueue the resulting job.
305305
_enqueueJobGlobal(Builtin.convertTaskToJob(childTask))
@@ -507,7 +507,7 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
507507
flags.bits, _group, operation)
508508

509509
// Attach it to the group's task record in the current task.
510-
_ = _taskGroupAttachChild(group: _group, child: childTask)
510+
_taskGroupAttachChild(group: _group, child: childTask)
511511

512512
// Enqueue the resulting job.
513513
_enqueueJobGlobal(Builtin.convertTaskToJob(childTask))
@@ -552,7 +552,7 @@ public struct ThrowingTaskGroup<ChildTaskResult: Sendable, Failure: Error> {
552552
flags.bits, _group, operation)
553553

554554
// Attach it to the group's task record in the current task.
555-
_ = _taskGroupAttachChild(group: _group, child: childTask)
555+
_taskGroupAttachChild(group: _group, child: childTask)
556556

557557
// Enqueue the resulting job.
558558
_enqueueJobGlobal(Builtin.convertTaskToJob(childTask))
@@ -790,7 +790,7 @@ extension ThrowingTaskGroup: AsyncSequence {
790790
func _taskGroupAttachChild(
791791
group: Builtin.RawPointer,
792792
child: Builtin.NativeObject
793-
) -> UnsafeRawPointer /*ChildTaskStatusRecord*/
793+
)
794794

795795
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
796796
@_silgen_name("swift_taskGroup_destroy")

0 commit comments

Comments
 (0)