Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
039f703b
Commit
039f703b
authored
Dec 02, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close #22473: asyncio doc: rephrase Future with run_forever() example
parent
eb2763dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
Doc/library/asyncio-task.rst
Doc/library/asyncio-task.rst
+3
-8
No files found.
Doc/library/asyncio-task.rst
View file @
039f703b
...
...
@@ -337,14 +337,9 @@ flow::
finally:
loop.close()
In this example, the future is responsible to display the result and to stop
the loop.
.. 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.
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.
Task
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment