| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -18,9 +18,9 @@ and Tasks. | |
| Coroutines | ||
| ========== | ||
|
|
||
| Coroutines declared with async/await syntax is the preferred way of | ||
| writing asyncio applications. For example, the following snippet | ||
| of code (requires Python 3.7+) prints "hello", waits 1 second, | ||
| :term:`Coroutines <coroutine>` declared with the async/await syntax is the | ||
| preferred way of writing asyncio applications. For example, the following | ||
| snippet of code (requires Python 3.7+) prints "hello", waits 1 second, | ||
|
Comment thread
Comment on lines
+21
to
+23
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI had to adjust the word wrapping here after adding the Sphinx role and grammar fix.
Sorry, something went wrong.
All reactions
|
||
| and then prints "world":: | ||
|
|
||
| >>> import asyncio | ||
| Expand Down Expand Up | @@ -240,6 +240,10 @@ Running an asyncio Program | |
| .. versionchanged:: 3.9 | ||
| Updated to use :meth:`loop.shutdown_default_executor`. | ||
|
|
||
| .. note:: | ||
| The source code for ``asyncio.run()`` can be found in | ||
| :source:`Lib/asyncio/runners.py`. | ||
|
|
||
|
Comment thread
aeros marked this conversation as resolved.
|
||
| Creating Tasks | ||
| ============== | ||
|
|
||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.