@@ -17,7 +17,7 @@ import Swift
1717///
1818/// The \c Actor protocol generalizes over all actor types. Actor types
1919/// implicitly conform to this protocol.
20- @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
20+ @available ( SwiftStdlib 5 . 5 , * )
2121public protocol Actor : AnyObject , Sendable {
2222
2323 /// Retrieve the executor for this actor as an optimized, unowned
@@ -37,24 +37,24 @@ public protocol Actor: AnyObject, Sendable {
3737
3838/// Called to initialize the default actor instance in an actor.
3939/// The implementation will call this within the actor's initializer.
40- @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
40+ @available ( SwiftStdlib 5 . 5 , * )
4141@_silgen_name ( " swift_defaultActor_initialize " )
4242public func _defaultActorInitialize( _ actor : AnyObject )
4343
4444/// Called to destroy the default actor instance in an actor.
4545/// The implementation will call this within the actor's deinit.
46- @available( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
46+ @available( SwiftStdlib 5 . 5 , * )
4747@_silgen_name ( " swift_defaultActor_destroy " )
4848public func _defaultActorDestroy( _ actor : AnyObject )
4949
50- @available( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
50+ @available( SwiftStdlib 5 . 5 , * )
5151@_silgen_name ( " swift_task_enqueueMainExecutor " )
5252@usableFromInline
5353internal func _enqueueOnMain( _ job: UnownedJob )
5454
5555/// A singleton actor whose executor is equivalent to
5656/// \c DispatchQueue.main, which is the main dispatch queue.
57- @available( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
57+ @available( SwiftStdlib 5 . 5 , * )
5858@globalActor public final actor MainActor: SerialExecutor {
5959 public static let shared = MainActor ( )
6060
@@ -75,15 +75,15 @@ internal func _enqueueOnMain(_ job: UnownedJob)
7575}
7676
7777// Used by the concurrency runtime
78- @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
78+ @available ( SwiftStdlib 5 . 5 , * )
7979extension SerialExecutor {
8080 @_silgen_name ( " _swift_task_getMainExecutor " )
8181 internal func _getMainExecutor( ) -> UnownedSerialExecutor {
8282 return MainActor . shared. unownedExecutor
8383 }
8484}
8585
86- @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
86+ @available ( SwiftStdlib 5 . 5 , * )
8787extension MainActor {
8888 /// Execute the given body closure on the main actor.
8989 public static func run< T> (
0 commit comments