MCPcopy Create free account
hub / github.com/EasyIME/PIME / done

Method done

python/python3/tornado/gen.py:386–392  ·  view source on GitHub ↗

Returns True if this iterator has no more results.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 5

__anext__Method · 0.95
test_empty_iteratorMethod · 0.95
test_already_doneMethod · 0.95
test_iteratorMethod · 0.95

Calls

no outgoing calls

Tested by 4

test_empty_iteratorMethod · 0.76
test_already_doneMethod · 0.76
test_iteratorMethod · 0.76