Commit 0cfded8b authored by Denis Bilenko's avatar Denis Bilenko

minor: change method order

parent d13141e1
......@@ -98,9 +98,6 @@ class GreenletSet(object):
if block:
p.join(timeout)
def full(self):
return False
def apply(self, func, args=None, kwds=None):
"""Equivalent of the apply() builtin function. It blocks till the result is ready."""
if args is None:
......@@ -160,6 +157,9 @@ class GreenletSet(object):
for _ in xrange(len(greenlets)):
yield q.get().get()
def full(self):
return False
class Pool(GreenletSet):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment