Commit 79796028 authored by Denis Bilenko's avatar Denis Bilenko

Greenlet.kill(): make block=True the default

parent 271a7ae6
...@@ -287,11 +287,11 @@ class Greenlet(greenlet): ...@@ -287,11 +287,11 @@ class Greenlet(greenlet):
g.link_exception() g.link_exception()
return g return g
def kill(self, exception=GreenletExit, block=False, timeout=None): def kill(self, exception=GreenletExit, block=True, timeout=None):
"""Raise the exception in the greenlet. """Raise the exception in the greenlet.
If block is ``False`` (the default), the current greenlet is not unscheduled. If block is ``True`` (the default), wait until the greenlet dies or the optional timeout expires.
If block is ``True``, wait until the greenlet dies or the optional timeout expires. If block is ``False``, the current greenlet is not unscheduled.
Return ``None``. Return ``None``.
""" """
......
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