Skip to content

Commit 48944e8

Browse files
committed
Address logical gap.
1 parent f278afc commit 48944e8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,11 @@ The recommended way to create tasks is via :func:`asyncio.create_task`.
176176
Creating a task automatically schedules it for execution (by adding a
177177
callback to run it in the event loop's to-do list, that is, collection of jobs).
178178

179-
Since there's only one event loop (in each thread), :mod:`!asyncio` takes care of
180-
associating the task with the event loop for you. As such, there's no need
181-
to specify the event loop.
179+
:mod:`!asyncio` automatically associates tasks with the event loop for you.
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.
182184

183185
::
184186

0 commit comments

Comments
 (0)