Merge 3.4 (asyncio doc)
This commit is contained in:
commit
3bf4647152
|
@ -337,14 +337,9 @@ flow::
|
||||||
finally:
|
finally:
|
||||||
loop.close()
|
loop.close()
|
||||||
|
|
||||||
In this example, the future is responsible to display the result and to stop
|
In this example, the future is used to link ``slow_operation()`` to
|
||||||
the loop.
|
``got_result()``: when ``slow_operation()`` is done, ``got_result()`` is called
|
||||||
|
with the result.
|
||||||
.. note::
|
|
||||||
The "slow_operation" coroutine object is only executed when the event loop
|
|
||||||
starts running, so it is possible to add a "done callback" to the future
|
|
||||||
after creating the task scheduling the coroutine object.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Task
|
Task
|
||||||
|
|
Loading…
Reference in New Issue