SwiftprotocollibswiftDistributed

protocol Distributed.DistributedActor

Members 15

  1. funcstatic == infix(A, A) -> Bool
  2. funcmethod descriptor for static resolve(id: A.ID, using: A.ActorSystem) throws -> A
  3. associatedtypeassociatedtype ActorSystem
  4. associatedtypeassociatedtype SerializationRequirement
  5. funcassertIsolated(_: @autoclosure () -> String, file: StaticString, line: UInt) -> ()
  6. funcassumeIsolated<A>(_: (isolated A) throws -> A1, file: StaticString, line: UInt) throws -> A1
  7. funcDistributed.DistributedActor< where A.ID: Encodable>.encode(to: Encoder) throws -> ()
  8. funchash(into: inout Hasher) -> ()
  9. funcpreconditionIsolated(_: @autoclosure () -> String, file: StaticString, line: UInt) -> ()
  10. funcwhenLocal<A where A1: Sendable>(@Sendable (isolated A) async throws -> A1) async throws -> A1?
  11. funcwhenLocal<A, B where A1: Sendable, B1: Error>(@Sendable (isolated A) async throws(B1) -> A1) async throws(B1) -> A1?
  12. initDistributed.DistributedActor< where A.ID: Decodable>.init(from: Decoder) throws -> A
  13. varvar actorSystem: A.ActorSystem { get }
  14. varvar asLocalActor: Actor { get }
  15. varvar unownedExecutor: UnownedSerialExecutor { get }
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
}