Skip to content

Commit e813bbe

Browse files
authored
Merge pull request #35911 from etcwilde/ewilde/deprecate-runAsyncAndBlock
Deprecate runAsyncAndBlock API
2 parents 9ba714a + e83b0a2 commit e813bbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Concurrency/Task.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ func _enqueueJobGlobal(_ task: Builtin.Job)
570570
@_silgen_name("swift_task_isCancelled")
571571
func isTaskCancelled(_ task: Builtin.NativeObject) -> Bool
572572

573+
@available(*, deprecated)
573574
@_silgen_name("swift_task_runAndBlockThread")
574575
public func runAsyncAndBlock(_ asyncFun: @escaping () async -> ())
575576

0 commit comments

Comments
 (0)