diff options
-rw-r--r-- | doc/using.rst | 4 |
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() |