Exemple #1
0
 def cancel(self) -> bool:
     return self._cancel(
         cygrpc.AioRpcStatus(cygrpc.StatusCode.cancelled,
                             _LOCAL_CANCELLATION_DETAILS, None, None))
Exemple #2
0
 def __del__(self) -> None:
     if not self._status.done():
         self._cancel(
             cygrpc.AioRpcStatus(cygrpc.StatusCode.cancelled,
                                 _GC_CANCELLATION_DETAILS, None, None))