MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / ConcurrentExecutorFutureResults

Class ConcurrentExecutorFutureResults

cassandra/concurrent.py:172–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171
172class ConcurrentExecutorFutureResults(ConcurrentExecutorListResults):
173 def __init__(self, session, statements_and_params, execution_profile, future):
174 super().__init__(session, statements_and_params, execution_profile)
175 self.future = future
176
177 def _put_result(self, result, idx, success):
178 super()._put_result(result, idx, success)
179 with self._condition:
180 if self._current == self._exec_count:
181 if self._exception and self._fail_fast:
182 self.future.set_exception(self._exception)
183 else:
184 sorted_results = [r[1] for r in sorted(self._results_queue)]
185 self.future.set_result(sorted_results)
186
187
188def execute_concurrent_async(

Callers 1

execute_concurrent_asyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected