ProtocolDistributed5.9.0

    DistributedActor

    The such obtained actor system is then used to resolve(id:using:) the decoded ID.

    iOS
    16.0+
    macOS
    13.0+
    tvOS
    16.0+
    watchOS
    9.0+
    protocol DistributedActor : Hashable, Identifiable, AnyActor

    Use the CodingUserInfoKey.actorSystemKey to provide the necessary actor system for the decoding initializer when decoding a distributed actor.

    Supertypes

    • protocol AnyActor

      Common marker protocol providing a shared “base” for both (local) Actor and (potentially remote) DistributedActor types.

    • protocol Equatable

      A type that can be compared for value equality.

    • protocol Hashable

      A type that can be hashed into a Hasher to produce an integer hash value.

    • protocol Identifiable

      A class of types whose instances hold the value of an entity with stable identity.

    • protocol Sendable

      A type whose values can safely be passed across concurrency domains by copying.

    Requirements

    Citizens in Distributed

    Members

    Citizens in Distributed

    where Self.ID:Encodable

    Members

    Citizens in Distributed

    where Self.ID:Decodable

    Members