Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Doc/library/asyncio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@

--------------

.. sidebar:: Hello World!

.. code-block:: python

import asyncio

async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')

asyncio.run(main())

asyncio is a library to write **concurrent** code using
**async/await** syntax.

Expand Down