MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / wait

Method wait

cassandra/connection.py:1669–1675  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

1667 self._event.set()
1668
1669 def wait(self, timeout):
1670 self._event.wait(timeout)
1671 if self._event.is_set():
1672 if self._exception:
1673 raise self._exception
1674 else:
1675 raise OperationTimedOut("Connection heartbeat timeout after %s seconds" % (timeout,), self.connection.endpoint)
1676
1677 def _options_callback(self, response):
1678 if isinstance(response, SupportedMessage):

Calls 1

OperationTimedOutClass · 0.90