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

Method execute

cassandra/concurrent.py:62–71  ·  view source on GitHub ↗
(self, concurrency, fail_fast)

Source from the content-addressed store, hash-verified

60 self._exec_depth = 0
61
62 def execute(self, concurrency, fail_fast):
63 self._fail_fast = fail_fast
64 self._results_queue = []
65 self._current = 0
66 self._exec_count = 0
67 with self._condition:
68 for n in range(concurrency):
69 if not self._execute_next():
70 break
71 return self._results()
72
73 def _execute_next(self):
74 # lock must be held

Callers 3

execute_concurrentFunction · 0.45
executeMethod · 0.45
execute_concurrent_asyncFunction · 0.45

Calls 2

_execute_nextMethod · 0.95
_resultsMethod · 0.45

Tested by

no test coverage detected