aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/ProtoRPC/ProtoRPC.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-12-06 12:08:43 -0800
committerGravatar Muxi Yan <mxyan@google.com>2018-12-06 12:08:43 -0800
commit70f34521deaeaf0d783f30d121fd26787135ac04 (patch)
tree5a15946876af9976c3f5214c674a436c6564b5f4 /src/objective-c/ProtoRPC/ProtoRPC.h
parentdfec57a9a9ebfbe92709498074eb184527ef599e (diff)
isolate start: function from proto calls
Diffstat (limited to 'src/objective-c/ProtoRPC/ProtoRPC.h')
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.h b/src/objective-c/ProtoRPC/ProtoRPC.h
index 2623aecb82..949f52d1b5 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.h
+++ b/src/objective-c/ProtoRPC/ProtoRPC.h
@@ -77,6 +77,11 @@ NS_ASSUME_NONNULL_BEGIN
responseClass:(Class)responseClass NS_DESIGNATED_INITIALIZER;
/**
+ * Start the call. This function must only be called once for each instance.
+ */
+- (void)start;
+
+/**
* Cancel the request of this call at best effort. It attempts to notify the server that the RPC
* should be cancelled, and issue closedWithTrailingMetadata:error: callback with error code
* CANCELED if no other error code has already been issued.
@@ -102,6 +107,11 @@ NS_ASSUME_NONNULL_BEGIN
responseClass:(Class)responseClass NS_DESIGNATED_INITIALIZER;
/**
+ * Start the call. This function must only be called once for each instance.
+ */
+- (void)start;
+
+/**
* Cancel the request of this call at best effort. It attempts to notify the server that the RPC
* should be cancelled, and issue closedWithTrailingMetadata:error: callback with error code
* CANCELED if no other error code has already been issued.