Skip to content

Commit 5cac8d0

Browse files
committed
[Concurrency] Workaround for _runAsyncHandler.
Work around an expected miscompile in _runAsyncHandler.
1 parent fb4583f commit 5cac8d0

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
@@ -314,6 +314,7 @@ extension Task {
314314

315315
}
316316

317+
@_optimize(none)
317318
public func _runAsyncHandler(operation: @escaping () async -> ()) {
318319
_ = Task.runDetached(operation: operation)
319320
}

0 commit comments

Comments
 (0)