From 519ed6319b1ed956fba3b89603211218cce29791 Mon Sep 17 00:00:00 2001
From: Pouya Yarandi
Date: Sun, 24 Jul 2022 01:04:18 +0430
Subject: [PATCH] Make path available in async calls
---
.../GRPCAsyncBidirectionalStreamingCall.swift | 5 +++++
.../AsyncAwaitSupport/GRPCAsyncClientStreamingCall.swift | 5 +++++
.../AsyncAwaitSupport/GRPCAsyncServerStreamingCall.swift | 5 +++++
Sources/GRPC/AsyncAwaitSupport/GRPCAsyncUnaryCall.swift | 5 +++++
4 files changed, 20 insertions(+)
diff --git a/Sources/GRPC/AsyncAwaitSupport/GRPCAsyncBidirectionalStreamingCall.swift b/Sources/GRPC/AsyncAwaitSupport/GRPCAsyncBidirectionalStreamingCall.swift
index 139beb937..7f2c3271f 100644
--- a/Sources/GRPC/AsyncAwaitSupport/GRPCAsyncBidirectionalStreamingCall.swift
+++ b/Sources/GRPC/AsyncAwaitSupport/GRPCAsyncBidirectionalStreamingCall.swift
@@ -35,6 +35,11 @@ public struct GRPCAsyncBidirectionalStreamingCall: Sendabl
self.call.options
}
+ /// The path used to make the RPC.
+ public var path: String {
+ self.call.path
+ }
+
/// Cancel this RPC if it hasn't already completed.
public func cancel() {
self.call.cancel(promise: nil)