summaryrefslogtreecommitdiff
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-01-21 23:59:49 +0200
committerBerker Peksag <berker.peksag@gmail.com>2016-01-21 23:59:49 +0200
commit183f1c47da44f46fc974232abb037e35ab2bdd9a (patch)
tree89e549e504c7bc3514f0b68860daa6c015ae46ba /Objects/codeobject.c
parentd8923744836dd2dac16da86199a1039a8ba0e073 (diff)
downloadcpython-183f1c47da44f46fc974232abb037e35ab2bdd9a.tar.gz
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