diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-12-19 01:52:00 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-12-19 01:52:00 +0100 |
commit | bfcd755c451cbdb1ae2b49955d06afc273ede521 (patch) | |
tree | 8b8bad6acd4d6d16801d36aba0072dbce5f11fa6 | |
parent | b5ab2651aa1f732beb3a3285ec20aa7cf296c88b (diff) | |
download | aioeventlet-bfcd755c451cbdb1ae2b49955d06afc273ede521.tar.gz |
yield_future: rephrase the doc
-rw-r--r-- | aioeventlet.py | 2 | ||||
-rw-r--r-- | doc/using.rst | 4 |
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 |