Skip to content

Commit

Permalink
Allow any sequence in gen.WaitAll, not just lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Sep 5, 2011
1 parent 39de229 commit 2f91460
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tornado/gen.py
Expand Up @@ -89,7 +89,7 @@ def start(self, runner):
def is_ready(self): def is_ready(self):
"""Called by the runner to determine whether to resume the generator. """Called by the runner to determine whether to resume the generator.
May be called repeatedly until it returns True. Returns a boolean; may be called more than once.
""" """
raise NotImplementedError() raise NotImplementedError()


Expand Down Expand Up @@ -150,7 +150,6 @@ class WaitAll(YieldPoint):
a list of results in the same order. a list of results in the same order.
""" """
def __init__(self, keys): def __init__(self, keys):
assert isinstance(keys, list)
self.keys = keys self.keys = keys


def start(self, runner): def start(self, runner):
Expand Down

0 comments on commit 2f91460

Please sign in to comment.