Required Associated Typeswift 6.0.1Distributed
ActorSystem
The type of transport used to communicate with actors of this type.
- iOS
- 16.0+
- macOS
- 13.0+
- tvOS
- 16.0+
- watchOS
- 9.0+
associatedtype ActorSystem : DistributedActorSystem where Self.ID == Self.ActorSystem.ActorID
Other requirements
Type members
associatedtype SerializationRequirement
The serialization requirement to apply to all distributed declarations inside the actor.
static func resolve(id: Self.ID, using: Self.ActorSystem
) throws -> Self Resolves the passed in
id
against thesystem
, returning either a local or remote actor reference.
Instance members
nonisolated var actorSystem: Self.ActorSystem
The
DistributedActorSystem
that is managing this distributed actor.nonisolated var id: Self.ID
Logical identity of this distributed actor.
nonisolated var unownedExecutor: UnownedSerialExecutor
Retrieve the executor for this distributed actor as an optimized, unowned reference. This API is equivalent to
unownedExecutor
, however, by default, it intentionally returnsnil
if this actor is a reference to a remote distributed actor, because the executor for remote references is effectively never g