Commit 1248a743 authored by Denis Bilenko's avatar Denis Bilenko

rawgreenlet: make block=True the default for kill() and killall()

parent ef4aaa54
......@@ -25,7 +25,7 @@ def _kill(greenlet, exception, waiter):
waiter.switch()
def kill(greenlet, exception=GreenletExit, block=False, polling_period=0.2):
def kill(greenlet, exception=GreenletExit, block=True, polling_period=0.2):
"""Kill greenlet with exception (GreenletExit by default).
Wait for it to die if block is true.
"""
......@@ -50,7 +50,7 @@ def _killall(greenlets, exception, waiter):
waiter.switch(diehards)
def killall(greenlets, exception=GreenletExit, block=False, polling_period=0.2):
def killall(greenlets, exception=GreenletExit, block=True, polling_period=0.2):
"""Kill all the greenlets with exception (GreenletExit by default).
Wait for them to die if block is true.
"""
......
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