Skip to content

Commit e475aef

Browse files
committed
revert changes to event-loop/thread discussion.
1 parent 176814e commit e475aef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,9 @@ Creating a task automatically schedules it for execution (by adding a
176176
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

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

185183
::
186184

0 commit comments

Comments
 (0)