SwiftfuncXPCDistributedXPCDistributed.XPCSystem
withBidirectionalInterface
XPCDistributed.XPCSystem.withBidirectionalInterface<A, B where A: Sendable, B: XPCDistributed.XPCSystem.ConnectableService>(to: B, assumingPeerSatisfies: XPC.XPCPeerRequirement?, perform: @isolated(any) (__owned XPCDistributed.XPCSystem.Session.LocalInterface) async -> (result: A, token: XPCDistributed.XPCSystem.Session.LocalInterface.ActivationToken)) async throws(XPCDistributed.XPCSystem.SetupError) -> A
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
generic{}
AB
req{}
- conformance:genericParameter
AprotocolSwift.Sendable - conformance:genericParameter
B
param{}
- 0to:genericParameter
B - 1assumingPeerSatisfies:enumSwift.Optional
- 2perform:function
@isolated(any) (__owned XPCDistributed.XPCSystem.Session.LocalInterface) async -> (result: A, token: XPCDistributed.XPCSystem.Session.LocalInterface.ActivationToken)asyncisolatedAny- returnstuple
(result: A, token: XPCDistributed.XPCSystem.Session.LocalInterface.ActivationToken)- element result:genericParameter
A
result{}
genericParameter
A