Skip to content

Commit f06d2f0

Browse files
stdlib: Fix the signature of _taskEscalate to return a priority
The `swift_task_escalate` is defined to return the new priority of the task after the escalation but the silgen_name'd function did not have the return type specified. Follow up to 18c2584
1 parent ee2450f commit f06d2f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/Concurrency/Task.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,8 @@ internal func _taskCurrentPriority(_ task: Builtin.NativeObject) -> UInt8
14941494

14951495
@available(SwiftStdlib 6.2, *)
14961496
@_silgen_name("swift_task_escalate")
1497-
internal func _taskEscalate(_ task: Builtin.NativeObject, newPriority: UInt8)
1497+
@discardableResult
1498+
internal func _taskEscalate(_ task: Builtin.NativeObject, newPriority: UInt8) -> UInt8
14981499

14991500
@available(SwiftStdlib 5.1, *)
15001501
@_silgen_name("swift_task_basePriority")

0 commit comments

Comments
 (0)