Skip to content

Commit 176814e

Browse files
committed
phrasing for threads & event loops.
1 parent 12d6e35 commit 176814e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/howto/a-conceptual-overview-of-asyncio.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ callback to run it in the event loop's to-do list, that is, collection of jobs).
177177
The recommended way to create tasks is via :func:`asyncio.create_task`.
178178

179179
:mod:`!asyncio` automatically associates tasks with the event loop for you.
180-
In many applications there's only a single thread with the one event loop,
181-
but you can have multiple threads, each with their own event loop.
182-
Each event loop is stored in thread-local storage, making it easy for
183-
:mod:`!asyncio` to associate tasks with the relevant loop for each thread.
180+
Typically there's only one event loop, so that's quite straightforward.
181+
It's uncommon, but some applications use multithreading and :mod:`!asyncio`
182+
together, where there's one event loop per thread, stored in thread-local
183+
storage.
184184

185185
::
186186

0 commit comments

Comments
 (0)