SwiftprotocollibswiftDistributed
DistributedActor
protocol Distributed.DistributedActor
Members 15
- func
static == infix(A, A) -> Bool - func
method descriptor for static resolve(id: A.ID, using: A.ActorSystem) throws -> A - associatedtype
associatedtype ActorSystem - associatedtype
associatedtype SerializationRequirement - func
assertIsolated(_: @autoclosure () -> String, file: StaticString, line: UInt) -> () - func
assumeIsolated<A>(_: (isolated A) throws -> A1, file: StaticString, line: UInt) throws -> A1 - func
Distributed.DistributedActor< where A.ID: Encodable>.encode(to: Encoder) throws -> () - func
hash(into: inout Hasher) -> () - func
preconditionIsolated(_: @autoclosure () -> String, file: StaticString, line: UInt) -> () - func
whenLocal<A where A1: Sendable>(@Sendable (isolated A) async throws -> A1) async throws -> A1? - func
whenLocal<A, B where A1: Sendable, B1: Error>(@Sendable (isolated A) async throws(B1) -> A1) async throws(B1) -> A1? - init
Distributed.DistributedActor< where A.ID: Decodable>.init(from: Decoder) throws -> A - var
var actorSystem: A.ActorSystem { get } - var
var asLocalActor: Actor { get } - var
var unownedExecutor: UnownedSerialExecutor { get }
Header
protocol DistributedActor: AnyObject, Swift.Hashable, Swift.Identifiable where Self.ActorSystem: Distributed.DistributedActorSystem, Self.ID == Self.ActorSystem.ActorID, Self.SerializationRequirement == Self.ActorSystem.SerializationRequirement { associatedtype ActorSystem associatedtype SerializationRequirement var actorSystem: Self.ActorSystem { get } var unownedExecutor: Swift.UnownedSerialExecutor { get } static func resolve(id: Self.ID, using: Self.ActorSystem) throws -> Self } extension Distributed.DistributedActor { init(from: any Swift.Decoder) throws where Self.ID: Swift.Decodable var asLocalActor: any Swift.Actor { get } func assertIsolated(_: @autoclosure () -> Swift.String, file: Swift.StaticString, line: Swift.UInt) func assumeIsolated<A1>(_: (_: isolated Self) throws -> A1, file: Swift.StaticString, line: Swift.UInt) throws -> A1 func preconditionIsolated(_: @autoclosure () -> Swift.String, file: Swift.StaticString, line: Swift.UInt) func hash(into: inout Swift.Hasher) func whenLocal<A1>(_: @Sendable (_: isolated Self) async throws -> A1) async throws -> A1? where A1: Swift.Sendable func whenLocal<A1, B1>(_: @Sendable (_: isolated Self) async throws(B1) -> A1) async throws(B1) -> A1? where A1: Swift.Sendable, B1: Swift.Error func encode(to: any Swift.Encoder) throws where Self.ID: Swift.Encodable static func == (_: Self, _: Self) -> Swift.Bool }