Returns True if this iterator has no more results.
(self)
| 384 | future_add_done_callback(future, self._done_callback) |
| 385 | |
| 386 | def done(self) -> bool: |
| 387 | """Returns True if this iterator has no more results.""" |
| 388 | if self._finished or self._unfinished: |
| 389 | return False |
| 390 | # Clear the 'current' values when iteration is done. |
| 391 | self.current_index = self.current_future = None |
| 392 | return True |
| 393 | |
| 394 | def next(self) -> Future: |
| 395 | """Returns a `.Future` that will yield the next available result. |
no outgoing calls