def cancel(self): _rclpy.rclpy_cancel_timer(self.timer_handle)
def cancel(self): with self.handle as capsule: _rclpy.rclpy_cancel_timer(capsule)