MCPcopy Create free account
hub / github.com/aws/aws-cli / _wait_on_dependent_futures

Method _wait_on_dependent_futures

awscli/s3transfer/tasks.py:181–192  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers 1

__call__Method · 0.95

Calls 1

Tested by

no test coverage detected