|
@@ -26,7 +26,10 @@ extension GRPCChannel {
|
|
|
/// - request: The request to send.
|
|
/// - request: The request to send.
|
|
|
/// - callOptions: Options for the RPC.
|
|
/// - callOptions: Options for the RPC.
|
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
|
- internal func makeAsyncUnaryCall<Request: Message, Response: Message>(
|
|
|
|
|
|
|
+ internal func makeAsyncUnaryCall<
|
|
|
|
|
+ Request: Message & Sendable,
|
|
|
|
|
+ Response: Message & Sendable
|
|
|
|
|
+ >(
|
|
|
path: String,
|
|
path: String,
|
|
|
request: Request,
|
|
request: Request,
|
|
|
callOptions: CallOptions,
|
|
callOptions: CallOptions,
|
|
@@ -50,7 +53,10 @@ extension GRPCChannel {
|
|
|
/// - request: The request to send.
|
|
/// - request: The request to send.
|
|
|
/// - callOptions: Options for the RPC.
|
|
/// - callOptions: Options for the RPC.
|
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
|
- internal func makeAsyncUnaryCall<Request: GRPCPayload, Response: GRPCPayload>(
|
|
|
|
|
|
|
+ internal func makeAsyncUnaryCall<
|
|
|
|
|
+ Request: GRPCPayload & Sendable,
|
|
|
|
|
+ Response: GRPCPayload & Sendable
|
|
|
|
|
+ >(
|
|
|
path: String,
|
|
path: String,
|
|
|
request: Request,
|
|
request: Request,
|
|
|
callOptions: CallOptions,
|
|
callOptions: CallOptions,
|
|
@@ -73,7 +79,10 @@ extension GRPCChannel {
|
|
|
/// - path: Path of the RPC, e.g. "/echo.Echo/Get"
|
|
/// - path: Path of the RPC, e.g. "/echo.Echo/Get"
|
|
|
/// - callOptions: Options for the RPC.
|
|
/// - callOptions: Options for the RPC.
|
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
|
- internal func makeAsyncClientStreamingCall<Request: Message, Response: Message>(
|
|
|
|
|
|
|
+ internal func makeAsyncClientStreamingCall<
|
|
|
|
|
+ Request: Message & Sendable,
|
|
|
|
|
+ Response: Message & Sendable
|
|
|
|
|
+ >(
|
|
|
path: String,
|
|
path: String,
|
|
|
callOptions: CallOptions,
|
|
callOptions: CallOptions,
|
|
|
interceptors: [ClientInterceptor<Request, Response>] = []
|
|
interceptors: [ClientInterceptor<Request, Response>] = []
|
|
@@ -94,7 +103,10 @@ extension GRPCChannel {
|
|
|
/// - path: Path of the RPC, e.g. "/echo.Echo/Get"
|
|
/// - path: Path of the RPC, e.g. "/echo.Echo/Get"
|
|
|
/// - callOptions: Options for the RPC.
|
|
/// - callOptions: Options for the RPC.
|
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
|
- internal func makeAsyncClientStreamingCall<Request: GRPCPayload, Response: GRPCPayload>(
|
|
|
|
|
|
|
+ internal func makeAsyncClientStreamingCall<
|
|
|
|
|
+ Request: GRPCPayload & Sendable,
|
|
|
|
|
+ Response: GRPCPayload & Sendable
|
|
|
|
|
+ >(
|
|
|
path: String,
|
|
path: String,
|
|
|
callOptions: CallOptions,
|
|
callOptions: CallOptions,
|
|
|
interceptors: [ClientInterceptor<Request, Response>] = []
|
|
interceptors: [ClientInterceptor<Request, Response>] = []
|
|
@@ -116,7 +128,10 @@ extension GRPCChannel {
|
|
|
/// - request: The request to send.
|
|
/// - request: The request to send.
|
|
|
/// - callOptions: Options for the RPC.
|
|
/// - callOptions: Options for the RPC.
|
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
|
- internal func makeAsyncServerStreamingCall<Request: Message, Response: Message>(
|
|
|
|
|
|
|
+ internal func makeAsyncServerStreamingCall<
|
|
|
|
|
+ Request: Message & Sendable,
|
|
|
|
|
+ Response: Message & Sendable
|
|
|
|
|
+ >(
|
|
|
path: String,
|
|
path: String,
|
|
|
request: Request,
|
|
request: Request,
|
|
|
callOptions: CallOptions,
|
|
callOptions: CallOptions,
|
|
@@ -140,7 +155,10 @@ extension GRPCChannel {
|
|
|
/// - request: The request to send.
|
|
/// - request: The request to send.
|
|
|
/// - callOptions: Options for the RPC.
|
|
/// - callOptions: Options for the RPC.
|
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
|
- internal func makeAsyncServerStreamingCall<Request: GRPCPayload, Response: GRPCPayload>(
|
|
|
|
|
|
|
+ internal func makeAsyncServerStreamingCall<
|
|
|
|
|
+ Request: GRPCPayload & Sendable,
|
|
|
|
|
+ Response: GRPCPayload & Sendable
|
|
|
|
|
+ >(
|
|
|
path: String,
|
|
path: String,
|
|
|
request: Request,
|
|
request: Request,
|
|
|
callOptions: CallOptions,
|
|
callOptions: CallOptions,
|
|
@@ -163,7 +181,10 @@ extension GRPCChannel {
|
|
|
/// - path: Path of the RPC, e.g. "/echo.Echo/Get"
|
|
/// - path: Path of the RPC, e.g. "/echo.Echo/Get"
|
|
|
/// - callOptions: Options for the RPC.
|
|
/// - callOptions: Options for the RPC.
|
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
|
- internal func makeAsyncBidirectionalStreamingCall<Request: Message, Response: Message>(
|
|
|
|
|
|
|
+ internal func makeAsyncBidirectionalStreamingCall<
|
|
|
|
|
+ Request: Message & Sendable,
|
|
|
|
|
+ Response: Message & Sendable
|
|
|
|
|
+ >(
|
|
|
path: String,
|
|
path: String,
|
|
|
callOptions: CallOptions,
|
|
callOptions: CallOptions,
|
|
|
interceptors: [ClientInterceptor<Request, Response>] = []
|
|
interceptors: [ClientInterceptor<Request, Response>] = []
|
|
@@ -184,7 +205,10 @@ extension GRPCChannel {
|
|
|
/// - path: Path of the RPC, e.g. "/echo.Echo/Get"
|
|
/// - path: Path of the RPC, e.g. "/echo.Echo/Get"
|
|
|
/// - callOptions: Options for the RPC.
|
|
/// - callOptions: Options for the RPC.
|
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
/// - interceptors: A list of interceptors to intercept the request and response stream with.
|
|
|
- internal func makeAsyncBidirectionalStreamingCall<Request: GRPCPayload, Response: GRPCPayload>(
|
|
|
|
|
|
|
+ internal func makeAsyncBidirectionalStreamingCall<
|
|
|
|
|
+ Request: GRPCPayload & Sendable,
|
|
|
|
|
+ Response: GRPCPayload & Sendable
|
|
|
|
|
+ >(
|
|
|
path: String,
|
|
path: String,
|
|
|
callOptions: CallOptions,
|
|
callOptions: CallOptions,
|
|
|
interceptors: [ClientInterceptor<Request, Response>] = []
|
|
interceptors: [ClientInterceptor<Request, Response>] = []
|