mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #79905 from DougGregor/DougGregor/concurrency-lib-6-2-fix
[Concurrency lib] Stdlib 9999 -> 6.2, where this code would land
This commit is contained in:
@@ -1541,7 +1541,7 @@ func _taskIsCurrentExecutor(_ executor: Builtin.Executor) -> Bool
|
||||
|
||||
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY && !SWIFT_CONCURRENCY_EMBEDDED
|
||||
|
||||
@available(SwiftStdlib 9999, *)
|
||||
@available(SwiftStdlib 6.2, *)
|
||||
@_silgen_name("swift_task_isCurrentExecutorWithFlags")
|
||||
@usableFromInline
|
||||
internal func _taskIsCurrentExecutor(
|
||||
@@ -1669,7 +1669,7 @@ internal func _runTaskForBridgedAsyncMethod(@_inheritActorContext _ body: __owne
|
||||
|
||||
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY && !SWIFT_CONCURRENCY_EMBEDDED
|
||||
|
||||
@available(SwiftStdlib 9999, *)
|
||||
@available(SwiftStdlib 6.2, *)
|
||||
@_alwaysEmitIntoClient
|
||||
@usableFromInline
|
||||
internal func _taskIsOnMainActor() -> Bool {
|
||||
@@ -1688,7 +1688,7 @@ internal func _taskIsOnMainActor() -> Bool {
|
||||
/// and that includes an error return value. So we cannot accept throwing
|
||||
/// functions here.
|
||||
@_alwaysEmitIntoClient
|
||||
@available(SwiftStdlib 9999, *)
|
||||
@available(SwiftStdlib 6.2, *)
|
||||
public func _taskRunOnMainActor(operation: @escaping @MainActor () -> ()) {
|
||||
typealias YesActor = @MainActor () -> ()
|
||||
typealias NoActor = () -> ()
|
||||
|
||||
Reference in New Issue
Block a user