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