(self, concurrency, fail_fast)
| 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 |
no test coverage detected