(self)
| 179 | raise NotImplementedError('_main() must be implemented') |
| 180 | |
| 181 | def _wait_on_dependent_futures(self): |
| 182 | # Gather all of the futures into that main() depends on. |
| 183 | futures_to_wait_on = [] |
| 184 | for _, future in self._pending_main_kwargs.items(): |
| 185 | # If the pending main keyword arg is a list then extend the list. |
| 186 | if isinstance(future, list): |
| 187 | futures_to_wait_on.extend(future) |
| 188 | # If the pending main keyword arg is a future append it to the list. |
| 189 | else: |
| 190 | futures_to_wait_on.append(future) |
| 191 | # Now wait for all of the futures to complete. |
| 192 | self._wait_until_all_complete(futures_to_wait_on) |
| 193 | |
| 194 | def _wait_until_all_complete(self, futures): |
| 195 | # This is a basic implementation of the concurrent.futures.wait() |
no test coverage detected