Commit d13141e1 authored by Denis Bilenko's avatar Denis Bilenko

pool: in apply(), always execute the function immediatelly if the current greenlet is in the pool

parent deb38bbc
......@@ -107,7 +107,7 @@ class GreenletSet(object):
args = ()
if kwds is None:
kwds = {}
if self.full() and getcurrent() in self:
if getcurrent() in self:
return func(*args, **kwds)
else:
return self.spawn(func, *args, **kwds).get()
......
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