@@ -17,7 +17,7 @@ import Swift
17
17
///
18
18
/// The \c Actor protocol generalizes over all actor types. Actor types
19
19
/// implicitly conform to this protocol.
20
- @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
20
+ @available ( SwiftStdlib 5 . 5 , * )
21
21
public protocol Actor : AnyObject , Sendable {
22
22
23
23
/// Retrieve the executor for this actor as an optimized, unowned
@@ -37,24 +37,24 @@ public protocol Actor: AnyObject, Sendable {
37
37
38
38
/// Called to initialize the default actor instance in an actor.
39
39
/// 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 , * )
41
41
@_silgen_name ( " swift_defaultActor_initialize " )
42
42
public func _defaultActorInitialize( _ actor : AnyObject )
43
43
44
44
/// Called to destroy the default actor instance in an actor.
45
45
/// 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 , * )
47
47
@_silgen_name ( " swift_defaultActor_destroy " )
48
48
public func _defaultActorDestroy( _ actor : AnyObject )
49
49
50
- @available( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
50
+ @available( SwiftStdlib 5 . 5 , * )
51
51
@_silgen_name ( " swift_task_enqueueMainExecutor " )
52
52
@usableFromInline
53
53
internal func _enqueueOnMain( _ job: UnownedJob )
54
54
55
55
/// A singleton actor whose executor is equivalent to
56
56
/// \c DispatchQueue.main, which is the main dispatch queue.
57
- @available( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
57
+ @available( SwiftStdlib 5 . 5 , * )
58
58
@globalActor public final actor MainActor: SerialExecutor {
59
59
public static let shared = MainActor ( )
60
60
@@ -75,15 +75,15 @@ internal func _enqueueOnMain(_ job: UnownedJob)
75
75
}
76
76
77
77
// Used by the concurrency runtime
78
- @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
78
+ @available ( SwiftStdlib 5 . 5 , * )
79
79
extension SerialExecutor {
80
80
@_silgen_name ( " _swift_task_getMainExecutor " )
81
81
internal func _getMainExecutor( ) -> UnownedSerialExecutor {
82
82
return MainActor . shared. unownedExecutor
83
83
}
84
84
}
85
85
86
- @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
86
+ @available ( SwiftStdlib 5 . 5 , * )
87
87
extension MainActor {
88
88
/// Execute the given body closure on the main actor.
89
89
public static func run< T> (
0 commit comments