Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 4ddb2d73ac661af516a252fe697ec05e726b0f20 authored by Miss Islington (bot) on 04 September 2020, 22:30:21 UTC, committed by GitHub on 04 September 2020, 22:30:21 UTC
I added some information to the `Concurrency and Multithreading` section of the `Developing with asyncio` guide. This is all information that would have helped me when I started using asyncio. I incorrectly assumed that `loop.call_soon_threadsafe()` and `run_coroutine_threadsafe()` could be called from a thread in a process separate from the one that the event loop is running in. Explicitly stating that this will not work will probably help some people starting out with asyncio in the future. I also added references to some other functions that can be used for inter-process communication without blocking the event loop. The section already mentions running blocking code in a ThreadPoolExecutor, but I think listing these other options in this section will also be helpful. (cherry picked from commit c68c5af2dc5ada8875a662f2beaac6234eae2a5a) Co-authored-by: Roger Iyengar <ri@rogeriyengar.com>
1 parent e77547b
Tip revision: 4ddb2d73ac661af516a252fe697ec05e726b0f20 authored by Miss Islington (bot) on 04 September 2020, 22:30:21 UTC
[3.8] Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882) (GH-22010)
[3.8] Improve asyncio-dev 'Concurrency and Multithreading' docs (GH-20882) (GH-22010)
Tip revision: 4ddb2d7
File | Mode | Size |
---|---|---|
_asyncio.vcxproj | -rw-r--r-- | 4.2 KB |
_asyncio.vcxproj.filters | -rw-r--r-- | 520 bytes |
_bz2.vcxproj | -rw-r--r-- | 5.1 KB |
_bz2.vcxproj.filters | -rw-r--r-- | 1.7 KB |
_ctypes.vcxproj | -rw-r--r-- | 4.9 KB |
_ctypes.vcxproj.filters | -rw-r--r-- | 1.4 KB |
_ctypes_test.vcxproj | -rw-r--r-- | 4.3 KB |
_ctypes_test.vcxproj.filters | -rw-r--r-- | 718 bytes |
_decimal.vcxproj | -rw-r--r-- | 7.6 KB |
_decimal.vcxproj.filters | -rw-r--r-- | 4.3 KB |
_elementtree.vcxproj | -rw-r--r-- | 5.6 KB |
_elementtree.vcxproj.filters | -rw-r--r-- | 2.5 KB |
_freeze_importlib.vcxproj | -rw-r--r-- | 7.2 KB |
_freeze_importlib.vcxproj.filters | -rw-r--r-- | 1.1 KB |
_hashlib.vcxproj | -rw-r--r-- | 4.4 KB |
_hashlib.vcxproj.filters | -rw-r--r-- | 436 bytes |
_lzma.vcxproj | -rw-r--r-- | 4.9 KB |
_lzma.vcxproj.filters | -rw-r--r-- | 435 bytes |
_msi.vcxproj | -rw-r--r-- | 4.4 KB |
_msi.vcxproj.filters | -rw-r--r-- | 423 bytes |
_multiprocessing.vcxproj | -rw-r--r-- | 4.6 KB |
_multiprocessing.vcxproj.filters | -rw-r--r-- | 861 bytes |
_overlapped.vcxproj | -rw-r--r-- | 4.4 KB |
_overlapped.vcxproj.filters | -rw-r--r-- | 434 bytes |
_queue.vcxproj | -rw-r--r-- | 4.2 KB |
_queue.vcxproj.filters | -rw-r--r-- | 518 bytes |
_socket.vcxproj | -rw-r--r-- | 4.5 KB |
_socket.vcxproj.filters | -rw-r--r-- | 702 bytes |
_sqlite3.vcxproj | -rw-r--r-- | 5.7 KB |
_sqlite3.vcxproj.filters | -rw-r--r-- | 2.4 KB |
_ssl.vcxproj | -rw-r--r-- | 4.8 KB |
_ssl.vcxproj.filters | -rw-r--r-- | 620 bytes |
_testbuffer.vcxproj | -rw-r--r-- | 4.2 KB |
_testbuffer.vcxproj.filters | -rw-r--r-- | 435 bytes |
_testcapi.vcxproj | -rw-r--r-- | 4.3 KB |
_testcapi.vcxproj.filters | -rw-r--r-- | 439 bytes |
_testconsole.vcxproj | -rw-r--r-- | 4.4 KB |
_testconsole.vcxproj.filters | -rw-r--r-- | 952 bytes |
_testembed.vcxproj | -rw-r--r-- | 4.3 KB |
_testembed.vcxproj.filters | -rw-r--r-- | 948 bytes |
_testimportmultiple.vcxproj | -rw-r--r-- | 4.3 KB |
_testimportmultiple.vcxproj.filters | -rw-r--r-- | 444 bytes |
_testinternalcapi.vcxproj | -rw-r--r-- | 4.3 KB |
_testinternalcapi.vcxproj.filters | -rw-r--r-- | 442 bytes |
_testmultiphase.vcxproj | -rw-r--r-- | 4.4 KB |
_testmultiphase.vcxproj.filters | -rw-r--r-- | 952 bytes |
_tkinter.vcxproj | -rw-r--r-- | 5.7 KB |
_tkinter.vcxproj.filters | -rw-r--r-- | 534 bytes |
build.bat | -rw-r--r-- | 6.7 KB |
build_env.bat | -rw-r--r-- | 25 bytes |
clean.bat | -rw-r--r-- | 128 bytes |
env.bat | -rw-r--r-- | 712 bytes |
field3.py | -rw-r--r-- | 974 bytes |
find_msbuild.bat | -rw-r--r-- | 2.8 KB |
find_python.bat | -rw-r--r-- | 3.2 KB |
fix_encoding.py | -rw-r--r-- | 952 bytes |
get_external.py | -rw-r--r-- | 1.8 KB |
get_externals.bat | -rw-r--r-- | 4.3 KB |
idle.bat | -rw-r--r-- | 296 bytes |
lib.pyproj | -rw-r--r-- | 89.5 KB |
libffi.props | -rw-r--r-- | 1.0 KB |
liblzma.vcxproj | -rw-r--r-- | 14.2 KB |
openssl.props | -rw-r--r-- | 1.5 KB |
openssl.vcxproj | -rw-r--r-- | 5.7 KB |
pcbuild.proj | -rw-r--r-- | 6.1 KB |
pcbuild.sln | -rw-r--r-- | 110.4 KB |
prepare_libffi.bat | -rw-r--r-- | 6.7 KB |
prepare_ssl.bat | -rw-r--r-- | 2.1 KB |
prepare_ssl.py | -rw-r--r-- | 6.7 KB |
prepare_tcltk.bat | -rw-r--r-- | 1.9 KB |
pyexpat.vcxproj | -rw-r--r-- | 4.8 KB |
pyexpat.vcxproj.filters | -rw-r--r-- | 1.1 KB |
pylauncher.vcxproj | -rw-r--r-- | 4.4 KB |
pylauncher.vcxproj.filters | -rw-r--r-- | 1.2 KB |
pyproject.props | -rw-r--r-- | 13.9 KB |
pyshellext.vcxproj | -rw-r--r-- | 4.6 KB |
pyshellext.vcxproj.filters | -rw-r--r-- | 1.4 KB |
python.props | -rw-r--r-- | 14.6 KB |
python.vcxproj | -rw-r--r-- | 7.2 KB |
python.vcxproj.filters | -rw-r--r-- | 824 bytes |
python3dll.vcxproj | -rw-r--r-- | 7.9 KB |
python3dll.vcxproj.filters | -rw-r--r-- | 1.2 KB |
python_uwp.vcxproj | -rw-r--r-- | 5.0 KB |
pythoncore.vcxproj | -rw-r--r-- | 26.7 KB |
pythoncore.vcxproj.filters | -rw-r--r-- | 37.0 KB |
pythonw.vcxproj | -rw-r--r-- | 4.2 KB |
pythonw.vcxproj.filters | -rw-r--r-- | 702 bytes |
pythonw_uwp.vcxproj | -rw-r--r-- | 5.0 KB |
pywlauncher.vcxproj | -rw-r--r-- | 4.4 KB |
pywlauncher.vcxproj.filters | -rw-r--r-- | 1.2 KB |
readme.txt | -rw-r--r-- | 10.9 KB |
rmpyc.py | -rw-r--r-- | 409 bytes |
rt.bat | -rw-r--r-- | 2.1 KB |
select.vcxproj | -rw-r--r-- | 4.3 KB |
select.vcxproj.filters | -rw-r--r-- | 436 bytes |
sqlite3.vcxproj | -rw-r--r-- | 5.3 KB |
sqlite3.vcxproj.filters | -rw-r--r-- | 804 bytes |
tcl.vcxproj | -rw-r--r-- | 3.0 KB |
tcltk.props | -rw-r--r-- | 3.7 KB |
tix.vcxproj | -rw-r--r-- | 3.9 KB |
tk.vcxproj | -rw-r--r-- | 3.2 KB |
unicodedata.vcxproj | -rw-r--r-- | 4.4 KB |
unicodedata.vcxproj.filters | -rw-r--r-- | 810 bytes |
urlretrieve.py | -rw-r--r-- | 1.2 KB |
venvlauncher.vcxproj | -rw-r--r-- | 4.6 KB |
venvwlauncher.vcxproj | -rw-r--r-- | 4.6 KB |
winsound.vcxproj | -rw-r--r-- | 4.4 KB |
winsound.vcxproj.filters | -rw-r--r-- | 500 bytes |
xxlimited.vcxproj | -rw-r--r-- | 4.4 KB |
xxlimited.vcxproj.filters | -rw-r--r-- | 433 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...