class_docstr: An RpcController mediates a single method call.
  
  The primary purpose of the controller is to provide a way to manipulate
  settings specific to the RPC implementation and to find out about RPC-level
  errors. The methods provided by the RpcController interface are intended
  to be a "least common denominator" set of features which we expect all
  implementations to support.  Specific implementations may provide more
  advanced features (e.g. deadline propagation).
class_docstr_tok: ["An","RpcController","mediates","a","single","method","call",".","The","primary","purpose","of","the","controller","is","to","provide","a","way","to","manipulate","settings","specific","to","the","RPC","implementation","and","to","find","out","about","RPC-level","errors",".","The","methods","provided","by","the","RpcController","interface","are","intended","to","be","a","``","least","common","denominator","''","set","of","features","which","we","expect","all","implementations","to","support",".","Specific","implementations","may","provide","more","advanced","features","(","e.g",".","deadline","propagation",")","."]
docstr: Sets a callback to invoke on cancel.
  
  Asks that the given callback be called when the RPC is canceled.  The
  callback will always be called exactly once.  If the RPC completes without
  being canceled, the callback will be called after completion.  If the RPC
  has already been canceled when NotifyOnCancel() is called, the callback
  will be called immediately.
  
  NotifyOnCancel() must be called no more than once per request.
docstr_tok: ["Sets","a","callback","to","invoke","on","cancel",".","Asks","that","the","given","callback","be","called","when","the","RPC","is","canceled",".","The","callback","will","always","be","called","exactly","once",".","If","the","RPC","completes","without","being","canceled",",","the","callback","will","be","called","after","completion",".","If","the","RPC","has","already","been","canceled","when","NotifyOnCancel","(",")","is","called",",","the","callback","will","be","called","immediately",".","NotifyOnCancel","(",")","must","be","called","no","more","than","once","per","request","."]
code: def NotifyOnCancel(self, callback):
      """Sets a callback to invoke on cancel.
  
      Asks that the given callback be called when the RPC is canceled.  The
      callback will always be called exactly once.  If the RPC completes without
      being canceled, the callback will be called after completion.  If the RPC
      has already been canceled when NotifyOnCancel() is called, the callback
      will be called immediately.
  
      NotifyOnCancel() must be called no more than once per request.
      """
      raise NotImplementedError
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/protobuf/python/google/protobuf/service.py
label_desc: Use image node_id 7 for calling the RpcController obj's underlying member method code with example usage: obj.NotifyOnCancel(callback) without return types