|
|
@ -226,6 +226,8 @@ class ServerContext { |
|
|
|
/// Async only. Has to be called before the rpc starts.
|
|
|
|
/// Async only. Has to be called before the rpc starts.
|
|
|
|
/// Returns the tag in completion queue when the rpc finishes.
|
|
|
|
/// Returns the tag in completion queue when the rpc finishes.
|
|
|
|
/// IsCancelled() can then be called to check whether the rpc was cancelled.
|
|
|
|
/// IsCancelled() can then be called to check whether the rpc was cancelled.
|
|
|
|
|
|
|
|
/// TODO(vjpai): Fix this so that the tag is returned even if the call never
|
|
|
|
|
|
|
|
/// starts (https://github.com/grpc/grpc/issues/10136).
|
|
|
|
void AsyncNotifyWhenDone(void* tag) { |
|
|
|
void AsyncNotifyWhenDone(void* tag) { |
|
|
|
has_notify_when_done_tag_ = true; |
|
|
|
has_notify_when_done_tag_ = true; |
|
|
|
async_notify_when_done_tag_ = tag; |
|
|
|
async_notify_when_done_tag_ = tag; |
|
|
|