summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-12-19 01:52:00 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-12-19 01:52:00 +0100
commitbfcd755c451cbdb1ae2b49955d06afc273ede521 (patch)
tree8b8bad6acd4d6d16801d36aba0072dbce5f11fa6
parentb5ab2651aa1f732beb3a3285ec20aa7cf296c88b (diff)
downloadaioeventlet-bfcd755c451cbdb1ae2b49955d06afc273ede521.tar.gz
yield_future: rephrase the doc
-rw-r--r--aioeventlet.py2
-rw-r--r--doc/using.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/aioeventlet.py b/aioeventlet.py
index 6660728..1942f69 100644
--- a/aioeventlet.py
+++ b/aioeventlet.py
@@ -315,7 +315,7 @@ def yield_future(future, loop=None):
Return the result or raise the exception of the future.
The function must not be called from the greenthread
- of the aioeventlet event loop.
+ running the aioeventlet event loop.
"""
future = asyncio.async(future, loop=loop)
if future._loop._greenthread == eventlet.getcurrent():
diff --git a/doc/using.rst b/doc/using.rst
index ac39f19..c4aea14 100644
--- a/doc/using.rst
+++ b/doc/using.rst
@@ -135,8 +135,8 @@ yield_future
Return the result or raise the exception of the future.
- The function must not be called from the greenthread of the aioeventlet event
- loop.
+ The function must not be called from the greenthread running the aioeventlet
+ event loop.
.. versionchanged:: 0.4