summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-12-11 09:09:28 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-12-11 09:09:28 +0100
commitd57ae15df9fb92be61c87fc350db9d52ce137888 (patch)
treef6a96ae972acfb575a21d9adf78173cba16a35c4
parentec80e1ea7d43745788cc0627ea2f45ca01cbcf78 (diff)
downloadaioeventlet-d57ae15df9fb92be61c87fc350db9d52ce137888.tar.gz
doc: Simplify yield_future example
-rw-r--r--doc/using.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/using.rst b/doc/using.rst
index 0a754de..ac39f19 100644
--- a/doc/using.rst
+++ b/doc/using.rst
@@ -168,9 +168,7 @@ yield_future
def green_sum():
loop.call_soon(progress)
- task = asyncio.async(coro_slow_sum(1, 2))
-
- value = aioeventlet.yield_future(task)
+ value = aioeventlet.yield_future(coro_slow_sum(1, 2))
print("1 + 2 = %s" % value)
loop.stop()