(self, aws, timeout)
| 559 | result of the next underlying future to complete. |
| 560 | """ |
| 561 | def __init__(self, aws, timeout): |
| 562 | self._done = queues.Queue() |
| 563 | self._timeout_handle = None |
| 564 | |
| 565 | loop = events.get_event_loop() |
| 566 | todo = {ensure_future(aw, loop=loop) for aw in set(aws)} |
| 567 | for f in todo: |
| 568 | f.add_done_callback(self._handle_completion) |
| 569 | if todo and timeout is not None: |
| 570 | self._timeout_handle = ( |
| 571 | loop.call_later(timeout, self._handle_timeout) |
| 572 | ) |
| 573 | self._todo = todo |
| 574 | self._todo_left = len(todo) |
| 575 | |
| 576 | def __aiter__(self): |
| 577 | return self |
nothing calls this directly
no test coverage detected