Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de010a9 + 039f703 commit 3bf4647Copy full SHA for 3bf4647
1 file changed
Doc/library/asyncio-task.rst
@@ -337,14 +337,9 @@ flow::
337
finally:
338
loop.close()
339
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
+In this example, the future is used to link ``slow_operation()`` to
+``got_result()``: when ``slow_operation()`` is done, ``got_result()`` is called
+with the result.
348
349
350
Task
0 commit comments