diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-01-21 21:59:49 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-01-21 21:59:49 (GMT) |
commit | 7405c16533f30acf6c0b1f2035898666871449c3 (patch) | |
tree | 306048441e425d36a95605c77fe8062bb25fbb39 /Mac/README | |
parent | 1538b3d3dfff284c8976f19c5e475b99717bacd8 (diff) | |
download | cpython-7405c16533f30acf6c0b1f2035898666871449c3.zip cpython-7405c16533f30acf6c0b1f2035898666871449c3.tar.gz cpython-7405c16533f30acf6c0b1f2035898666871449c3.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 'Mac/README')
0 files changed, 0 insertions, 0 deletions