Skip to content

Commit 2efc94f

Browse files
committed
Do not equate blocking code with CPU-bound code in the asyncio docs
1 parent 3a80d6f commit 2efc94f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Doc/library/asyncio-dev.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ code in a different process.
120120
Running Blocking Code
121121
=====================
122122

123-
Blocking (:term:`CPU-bound`) code should not be called directly. For example,
123+
Blocking code, whether :term:`CPU-bound` or :term:`I/O-bound`, should not
124+
be called directly from the event loop thread. For example,
124125
if a function performs a CPU-intensive calculation for 1 second,
125126
all concurrent asyncio Tasks and IO operations would be delayed
126127
by 1 second.

0 commit comments

Comments
 (0)