Skip to content

Commit 0d4e041

Browse files
authored
Merge pull request #41689 from apple/revert-40661-ewilde/concurrency/cleanup-run-async-main
2 parents d67f774 + a2cfbda commit 0d4e041

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/swift/AST/Attr.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ SIMPLE_DECL_ATTR(_noAllocation, NoAllocation,
695695
SIMPLE_DECL_ATTR(preconcurrency, Preconcurrency,
696696
OnFunc | OnConstructor | OnProtocol | OnGenericType | OnVar | OnSubscript |
697697
OnEnumElement | OnImport |
698-
ABIStableToAdd | ABIBreakingToRemove | APIStableToAdd | APIBreakingToRemove,
698+
ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
699699
125)
700700

701701
CONTEXTUAL_SIMPLE_DECL_ATTR(_const, CompileTimeConst,

stdlib/public/Concurrency/Task.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,7 @@ internal func _asyncMainDrainQueue() -> Never
834834
internal func _getMainExecutor() -> Builtin.Executor
835835

836836
@available(SwiftStdlib 5.1, *)
837-
@usableFromInline
838-
@_predatesConcurrency
839-
internal func _runAsyncMain(_ asyncFun: @Sendable @escaping () async throws -> ()) {
837+
public func _runAsyncMain(_ asyncFun: @escaping () async throws -> ()) {
840838
Task.detached {
841839
do {
842840
#if !os(Windows)

0 commit comments

Comments
 (0)