SwiftactorXPCDistributed

actor XPCDistributed.RequestManager

Structure

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

Members 9

  1. deinitdeinit
  2. fieldvar activeRequests: [A : XPCDistributed.RequestManager<A, B>.Request]+0x18
  3. fieldlet queue: OS_dispatch_queue_serial+0x10
  4. funccancel(to: A, with: B) -> ()
  5. funcreply(to: A, with: B) -> ()
  6. funcreplyAll(with: B) -> ()
  7. funcwithRequest<A, B where B1: Error>(id: A, replyHandler: @Sendable (B?) throws(B1) -> A1, perform: (XPCDistributed.RequestManager<A, B>.Request) -> ()) async throws(B1) -> A1
  8. funcwithRequest(id: A, perform: (XPCDistributed.RequestManager<A, B>.Request) -> ()) async -> B?
  9. initXPCDistributed.RequestManager.__allocating_init(queue: OS_dispatch_queue_serial) -> XPCDistributed.RequestManager<A, B>
actor RequestManager<A, B> where A: Swift.Hashable {
    actor Request {
        enum State {
            case cancelled(B?)
            case active((_: B?) -> ())
            case initial
            case completed
        }
        let id: A
        var state: XPCDistributed.RequestManager<A, B>.Request.State
        let queue: __C.OS_dispatch_queue_serial

        init(id: A, queue: __C.OS_dispatch_queue_serial)

        func _setReplyHandler(to: consuming (_: B?) -> ()) -> Swift.Bool
        func reply(with: B?) -> Swift.Bool
        func _cancel(with: B?)

        deinit
    }
    let queue: __C.OS_dispatch_queue_serial
    var activeRequests: [A : XPCDistributed.RequestManager<A, B>.Request]

    init(queue: __C.OS_dispatch_queue_serial)

    func withRequest<A1, B1>(id: A, replyHandler: @escaping @Sendable (_: B?) throws(B1) -> A1, perform: (_: XPCDistributed.RequestManager<A, B>.Request) -> ()) async throws(B1) -> A1 where B1: Swift.Error
    func withRequest(id: A, perform: (_: XPCDistributed.RequestManager<A, B>.Request) -> ()) async -> B?
    func reply(to: A, with: B)
    func cancel(to: A, with: B)
    func replyAll(with: B)

    deinit
}