Allow any sequence in gen.WaitAll, not just lists.

This commit is contained in:
Ben Darnell 2011-09-05 12:15:50 -07:00
parent 39de229e86
commit 2f91460164
1 changed files with 1 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class YieldPoint(object):
def is_ready(self):
"""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()
@ -150,7 +150,6 @@ class WaitAll(YieldPoint):
a list of results in the same order.
"""
def __init__(self, keys):
assert isinstance(keys, list)
self.keys = keys
def start(self, runner):