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.
1 parent 807d6b5 commit 5d868efCopy full SHA for 5d868ef
Doc/library/asyncio.rst
@@ -56,6 +56,18 @@ Additionally, there are **low-level** APIs for
56
* :ref:`bridge <asyncio-futures>` callback-based libraries and code
57
with async/await syntax.
58
59
+You can experiment with an ``asyncio`` concurrent context in the REPL:
60
+
61
+.. code-block:: pycon
62
63
+ $ python -m asyncio
64
+ asyncio REPL ...
65
+ Use "await" directly instead of "asyncio.run()".
66
+ Type "help", "copyright", "credits" or "license" for more information.
67
+ >>> import asyncio
68
+ >>> await asyncio.sleep(10, result='hello')
69
+ 'hello'
70
71
.. include:: ../includes/wasm-notavail.rst
72
73
.. We use the "rubric" directive here to avoid creating
0 commit comments