SwiftextensionlibswiftDistributed

extension Distributed.DistributedActor

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 10

  1. funcstatic == infix(A, A) -> Bool
  2. funcassertIsolated(_: @autoclosure () -> String, file: StaticString, line: UInt) -> ()
  3. funcassumeIsolated<A>(_: (isolated A) throws -> A1, file: StaticString, line: UInt) throws -> A1
  4. funcDistributed.DistributedActor< where A.ID: Encodable>.encode(to: Encoder) throws -> ()
  5. funchash(into: inout Hasher) -> ()
  6. funcpreconditionIsolated(_: @autoclosure () -> String, file: StaticString, line: UInt) -> ()
  7. funcwhenLocal<A where A1: Sendable>(@Sendable (isolated A) async throws -> A1) async throws -> A1?
  8. funcwhenLocal<A, B where A1: Sendable, B1: Error>(@Sendable (isolated A) async throws(B1) -> A1) async throws(B1) -> A1?
  9. initDistributed.DistributedActor< where A.ID: Decodable>.init(from: Decoder) throws -> A
  10. varvar asLocalActor: Actor { get }
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
}