[call-v3] Re-add accidentally deleted comment (#35235)

Closes #35235

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35235 from ctiller:cg-fix-comment2 5abebaaadb
PiperOrigin-RevId: 588544922
pull/35238/head
Craig Tiller 1 year ago committed by Copybara-Service
parent 1abfc97502
commit 6c816a4f99
  1. 9
      src/core/lib/transport/transport.h

@ -251,6 +251,15 @@ class CallSpineInterface {
virtual void IncrementRefCount() = 0;
virtual void Unref() = 0;
// Cancel the call with the given metadata.
// Regarding the `MUST_USE_RESULT absl::nullopt_t`:
// Most cancellation calls right now happen in pipe interceptors;
// there `nullopt` indicates terminate processing of this pipe and close with
// error.
// It's convenient then to have the Cancel operation (setting the latch to
// terminate the call) be the last thing that occurs in a pipe interceptor,
// and this construction supports that (and has helped the author not write
// some bugs).
GRPC_MUST_USE_RESULT absl::nullopt_t Cancel(ServerMetadataHandle metadata) {
GPR_DEBUG_ASSERT(Activity::current() == &party());
auto& c = cancel_latch();

Loading…
Cancel
Save