diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-01-21 22:07:00 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-01-21 22:07:00 (GMT) |
commit | f9aa599c0a28c34d3de1c011590a4c555055cdc8 (patch) | |
tree | b1c332f758961e6bfa3b737fb0adf4d7e740735a /Objects/codeobject.c | |
parent | 047ddfb64d240c54ebc1993f1feb4ec31ff8b042 (diff) | |
download | cpython-f9aa599c0a28c34d3de1c011590a4c555055cdc8.zip cpython-f9aa599c0a28c34d3de1c011590a4c555055cdc8.tar.gz cpython-f9aa599c0a28c34d3de1c011590a4c555055cdc8.tar.bz2 |
Issue #18620: Improve Pool examples in multiprocessing documentation
A single call to Pool.apply_async() will create only one process. To use all
of the pool's processes, it should be invoked multiple times:
with Pool(processes=4) as pool:
results = [pool.apply_async(func, ()) for i in range(4)]
Patch by Davin Potts.
Diffstat (limited to 'Objects/codeobject.c')
0 files changed, 0 insertions, 0 deletions