aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/ProtoRPC/ProtoRPC.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-23 10:22:18 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-23 10:22:18 -0700
commitf3e9224f0b34a6265830600c67293d96964a4c5c (patch)
tree0523ee249312046d7710cfe8bcb9a4af042940d1 /src/objective-c/ProtoRPC/ProtoRPC.h
parente39c146f0f7f1a56e0cd65ec5d707c8bb091366e (diff)
Remove retain of handler in callbacks and dispatch to dispatchQueue
Diffstat (limited to 'src/objective-c/ProtoRPC/ProtoRPC.h')
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.h b/src/objective-c/ProtoRPC/ProtoRPC.h
index 960a9a12bd..6f4b9eed75 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.h
+++ b/src/objective-c/ProtoRPC/ProtoRPC.h
@@ -30,11 +30,14 @@ NS_ASSUME_NONNULL_BEGIN
@optional
-/** Issued when initial metadata is received from the server. */
+/**
+ * Issued when initial metadata is received from the server. The task must be scheduled onto the
+ * dispatch queue in property \a dispatchQueue. */
- (void)receivedInitialMetadata:(NSDictionary *_Nullable)initialMetadata;
/**
* Issued when a message is received from the server. The message is the deserialized proto object.
+ * The task must be scheduled onto the dispatch queue in property \a dispatchQueue.
*/
- (void)receivedProtoMessage:(GPBMessage *_Nullable)message;
@@ -42,7 +45,8 @@ NS_ASSUME_NONNULL_BEGIN
* Issued when a call finished. If the call finished successfully, \a error is nil and \a
* trainingMetadata consists any trailing metadata received from the server. Otherwise, \a error
* is non-nil and contains the corresponding error information, including gRPC error codes and
- * error descriptions.
+ * error descriptions. The task must be scheduled onto the dispatch queue in property
+ * \a dispatchQueue.
*/
- (void)closedWithTrailingMetadata:(NSDictionary *_Nullable)trailingMetadata
error:(NSError *_Nullable)error;