Returns a `.Future` that will yield the next available result. Note that this `.Future` will not be the same object as any of the inputs.
(self)
| 392 | return True |
| 393 | |
| 394 | def next(self) -> Future: |
| 395 | """Returns a `.Future` that will yield the next available result. |
| 396 | |
| 397 | Note that this `.Future` will not be the same object as any of |
| 398 | the inputs. |
| 399 | """ |
| 400 | self._running_future = Future() |
| 401 | |
| 402 | if self._finished: |
| 403 | return self._return_result(self._finished.popleft()) |
| 404 | |
| 405 | return self._running_future |
| 406 | |
| 407 | def _done_callback(self, done: Future) -> None: |
| 408 | if self._running_future and not self._running_future.done(): |