Commit 86201faf authored by Denis Bilenko's avatar Denis Bilenko

Greenlet: improve throw()'s docstring

parent 8772e690
...@@ -212,6 +212,10 @@ class Greenlet(greenlet): ...@@ -212,6 +212,10 @@ class Greenlet(greenlet):
Should only be called from the HUB, otherwise the current greenlet is left unscheduled forever. Should only be called from the HUB, otherwise the current greenlet is left unscheduled forever.
To raise an exception in a safely manner from any greenlet, use :meth:`kill`. To raise an exception in a safely manner from any greenlet, use :meth:`kill`.
If a greenlet was started but never switched to yet, then also
a) cancel the event that will start it
b) fire the notifications as if an exception was raised in a greenlet
""" """
if self._start_event is not None: if self._start_event is not None:
self._start_event.cancel() self._start_event.cancel()
......
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