Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3bf4647

Browse files
committed
Merge 3.4 (asyncio doc)
2 parents de010a9 + 039f703 commit 3bf4647

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

Doc/library/asyncio-task.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,9 @@ flow::
337337
finally:
338338
loop.close()
339339

340-
In this example, the future is responsible to display the result and to stop
341-
the loop.
342-
343-
.. note::
344-
The "slow_operation" coroutine object is only executed when the event loop
345-
starts running, so it is possible to add a "done callback" to the future
346-
after creating the task scheduling the coroutine object.
347-
340+
In this example, the future is used to link ``slow_operation()`` to
341+
``got_result()``: when ``slow_operation()`` is done, ``got_result()`` is called
342+
with the result.
348343

349344

350345
Task

0 commit comments

Comments
 (0)