SwiftactorXPCDistributed
actor XPCDistributed.RequestManager
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Actor
Members 9
- deinit
deinit - field
var activeRequests: [A : XPCDistributed.RequestManager<A, B>.Request]+0x18 - field
let queue: OS_dispatch_queue_serial+0x10 - func
cancel(to: A, with: B) -> () - func
reply(to: A, with: B) -> () - func
replyAll(with: B) -> () - func
withRequest<A, B where B1: Error>(id: A, replyHandler: @Sendable (B?) throws(B1) -> A1, perform: (XPCDistributed.RequestManager<A, B>.Request) -> ()) async throws(B1) -> A1 - func
withRequest(id: A, perform: (XPCDistributed.RequestManager<A, B>.Request) -> ()) async -> B? - init
XPCDistributed.RequestManager.__allocating_init(queue: OS_dispatch_queue_serial) -> XPCDistributed.RequestManager<A, B>
Header
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 }