From 9ec763a80010188a107639423a2cee95d1dfb0d1 Mon Sep 17 00:00:00 2001 From: Muxi Yan Date: Wed, 27 Nov 2019 10:41:27 -0800 Subject: [PATCH] Add doc to notice that users should not reuse GRPCUnaryResponseHandler --- src/objective-c/ProtoRPC/ProtoRPC.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/objective-c/ProtoRPC/ProtoRPC.h b/src/objective-c/ProtoRPC/ProtoRPC.h index 7f0e68fbea0..f6dfbb14440 100644 --- a/src/objective-c/ProtoRPC/ProtoRPC.h +++ b/src/objective-c/ProtoRPC/ProtoRPC.h @@ -73,6 +73,9 @@ NS_ASSUME_NONNULL_BEGIN /** * A convenience class of objects that act as response handlers of calls. Issues * response to a single handler when the response is completed. + * + * The object is stateful and should not be reused for multiple calls. If multiple calls share the + * same response handling logic, create separate GRPCUnaryResponseHandler objects for each call. */ @interface GRPCUnaryResponseHandler : NSObject