@@ -20,7 +20,7 @@ import _Concurrency
2020///
2121/// FIXME(distributed): We'd need Actor to also conform to this, but don't want to add that conformance in _Concurrency yet.
2222@_marker
23- @available ( SwiftStdlib 5 . 1 , * )
23+ @available ( SwiftStdlib 5 . 6 , * )
2424public protocol AnyActor : Sendable , AnyObject { }
2525
2626// ==== Distributed Actor -----------------------------------------------------
@@ -33,7 +33,7 @@ public protocol AnyActor: Sendable, AnyObject {}
3333///
3434/// The 'DistributedActor' protocol provides the core functionality of any
3535/// distributed actor.
36- @available ( SwiftStdlib 5 . 1 , * )
36+ @available ( SwiftStdlib 5 . 6 , * )
3737public protocol DistributedActor :
3838 AnyActor , Sendable , Identifiable , Hashable , Codable {
3939 /// Resolves the passed in `identity` against the `transport`, returning
@@ -79,7 +79,7 @@ public protocol DistributedActor:
7979
8080// ==== Hashable conformance ---------------------------------------------------
8181
82- @available ( SwiftStdlib 5 . 1 , * )
82+ @available ( SwiftStdlib 5 . 6 , * )
8383extension DistributedActor {
8484 nonisolated public func hash( into hasher: inout Hasher ) {
8585 self . id. hash ( into: & hasher)
@@ -93,11 +93,11 @@ extension DistributedActor {
9393// ==== Codable conformance ----------------------------------------------------
9494
9595extension CodingUserInfoKey {
96- @available ( SwiftStdlib 5 . 1 , * )
96+ @available ( SwiftStdlib 5 . 6 , * )
9797 public static let actorTransportKey = CodingUserInfoKey ( rawValue: " $dist_act_transport " ) !
9898}
9999
100- @available ( SwiftStdlib 5 . 1 , * )
100+ @available ( SwiftStdlib 5 . 6 , * )
101101extension DistributedActor {
102102 nonisolated public init ( from decoder: Decoder ) throws {
103103 guard let transport = decoder. userInfo [ . actorTransportKey] as? ActorTransport else {
@@ -118,7 +118,7 @@ extension DistributedActor {
118118
119119// ==== Local actor special handling -------------------------------------------
120120
121- @available ( SwiftStdlib 5 . 1 , * )
121+ @available ( SwiftStdlib 5 . 6 , * )
122122extension DistributedActor {
123123
124124 /// Executes the passed 'body' only when the distributed actor is local instance.
@@ -143,10 +143,10 @@ extension DistributedActor {
143143/******************************************************************************/
144144
145145/// Uniquely identifies a distributed actor, and enables sending messages and identifying remote actors.
146- @available ( SwiftStdlib 5 . 1 , * )
146+ @available ( SwiftStdlib 5 . 6 , * )
147147public protocol ActorIdentity : Sendable , Hashable , Codable { }
148148
149- @available ( SwiftStdlib 5 . 1 , * )
149+ @available ( SwiftStdlib 5 . 6 , * )
150150public struct AnyActorIdentity : ActorIdentity , @unchecked Sendable , CustomStringConvertible {
151151 public let underlying : Any
152152 @usableFromInline let _hashInto : ( inout Hasher ) -> ( )
@@ -208,11 +208,11 @@ public struct AnyActorIdentity: ActorIdentity, @unchecked Sendable, CustomString
208208/******************************************************************************/
209209
210210/// Error protocol to which errors thrown by any `ActorTransport` should conform.
211- @available ( SwiftStdlib 5 . 1 , * )
211+ @available ( SwiftStdlib 5 . 6 , * )
212212public protocol ActorTransportError : Error {
213213}
214214
215- @available ( SwiftStdlib 5 . 1 , * )
215+ @available ( SwiftStdlib 5 . 6 , * )
216216public struct DistributedActorCodingError : ActorTransportError {
217217 public let message : String
218218
0 commit comments