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

greenlet.py: use run_callback() instead of callback()+start()

parent d69f4255
......@@ -518,8 +518,7 @@ def killall(greenlets, exception=GreenletExit, block=True, timeout=None):
loop = greenlets[0].loop
if block:
waiter = Waiter()
x = loop.callback()
x.start(_killall3, greenlets, exception, waiter)
loop.run_callback(_killall3, greenlets, exception, waiter)
t = Timeout.start_new(timeout)
try:
alive = waiter.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