Commit 5858d226 authored by Jason Madden's avatar Jason Madden Committed by GitHub

Merge pull request #1859 from aathan/master

Improved documentation of link() and rawlink()
parents ae2cb5ae f4555571
...@@ -948,6 +948,9 @@ class Greenlet(greenlet): ...@@ -948,6 +948,9 @@ class Greenlet(greenlet):
The *callback* will be called with this instance as an The *callback* will be called with this instance as an
argument. argument.
The *callback* will be called even if linked after the greenlet
is already ready().
.. caution:: .. caution::
The *callback* will be called in the hub and The *callback* will be called in the hub and
**MUST NOT** raise an exception. **MUST NOT** raise an exception.
...@@ -967,6 +970,9 @@ class Greenlet(greenlet): ...@@ -967,6 +970,9 @@ class Greenlet(greenlet):
argument once this greenlet is dead. A callable is called in argument once this greenlet is dead. A callable is called in
its own :class:`greenlet.greenlet` (*not* a its own :class:`greenlet.greenlet` (*not* a
:class:`Greenlet`). :class:`Greenlet`).
The *callback* will be called even if linked after the greenlet
is already ready().
""" """
# XXX: Is the redefinition of SpawnedLink supposed to just be an # XXX: Is the redefinition of SpawnedLink supposed to just be an
# optimization, or do people use it? It's not documented # optimization, or do people use it? It's not documented
......
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