Add doc to notice that users should not reuse GRPCUnaryResponseHandler

pull/21316/head
Muxi Yan 5 years ago
parent 91cc01e541
commit 9ec763a800
  1. 3
      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<ResponseType> : NSObject<GRPCProtoResponseHandler>

Loading…
Cancel
Save