This repository was archived by the owner on May 31, 2021. It is now read-only.
File tree 3 files changed +19
-0
lines changed
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ ++++++++++++++++++
2
+ Asyncio Debug Mode
3
+ ++++++++++++++++++
4
+
5
+ * Set the environment variable: ``PYTHONASYNCIODEBUG=1 ``
6
+ * Configure Python logging:
7
+ ``logging.basicConfig(level=logging.ERROR) ``
8
+
9
+ See also: `Debug mode of asyncio (ref doc)
10
+ <https://docs.python.org/dev/library/asyncio-dev.html#debug-mode-of-asyncio> `_.
11
+
Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ Chapiter 1: First steps with asyncio
17
17
twisted.rst
18
18
getting_help.rst
19
19
20
+
20
21
Chapiter 2: Advanced topics
21
22
===========================
22
23
23
24
.. toctree ::
24
25
:maxdepth: 2
25
26
26
27
threads.rst
28
+ debug_mode.rst
27
29
28
30
29
31
See also
Original file line number Diff line number Diff line change @@ -6,3 +6,9 @@ Run slow CPU-intensive or blocking I/O code in a thread:
6
6
7
7
.. literalinclude :: examples/run_in_thread.py
8
8
9
+ See also:
10
+
11
+ * `run_in_executor() documentation
12
+ <https://docs.python.org/dev/library/asyncio-eventloop.html#asyncio.BaseEventLoop.run_in_executor> `_
13
+ * `asyncio: Concurrency and multithreading
14
+ <https://docs.python.org/dev/library/asyncio-dev.html#concurrency-and-multithreading> `_
You can’t perform that action at this time.
0 commit comments