| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4cdb758 commit 6aeed01
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,8 +38,10 @@ an event loop: | |||
| 38 | 38 | ||
| 39 | 39 | .. function:: get_event_loop() | |
| 40 | 40 | ||
| 41 | - Get the current event loop. If there is no current event loop set | ||
| 42 | - in the current OS thread and :func:`set_event_loop` has not yet | ||
| 41 | + Get the current event loop. | ||
| 42 | + | ||
| 43 | + If there is no current event loop set in the current OS thread, | ||
| 44 | + the OS thread is main, and :func:`set_event_loop` has not yet | ||
| 43 | 45 | been called, asyncio will create a new event loop and set it as the | |
| 44 | 46 | current one. | |
| 45 | 47 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,2 @@ | |||
| 1 | + Mention in docs that :func:`asyncio.get_event_loop` implicitly creates new | ||
| 2 | + event loop only if called from the main thread. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments