Skip to content

Commit

Permalink
Fix doc coverage for WaitIterator.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Jan 24, 2015
1 parent def70b4 commit bc786fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/gen.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
.. autofunction:: Task

.. autoclass:: WaitIterator
:members:

.. class:: Arguments

Expand Down
1 change: 1 addition & 0 deletions tornado/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def __init__(self, *args, **kwargs):
self._done_callback, self_ref))

def done(self):
"""Returns True if this iterator has no more results."""
if self._finished or self._unfinished:
return False
# Clear the 'current' values when iteration is done.
Expand Down

0 comments on commit bc786fa

Please sign in to comment.