diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-01-22 00:00:06 +0200 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-01-22 00:00:06 +0200 |
commit | 2e15d60b832a0ab8aa214aea80f8d16019ee932e (patch) | |
tree | f7bba7e558aace4f75785bf3b83192450c025fe2 /Python/import.c | |
parent | dce4ae8ffe3979798901bc5d5f944e47b7e0ba3a (diff) | |
parent | 7405c16533f30acf6c0b1f2035898666871449c3 (diff) | |
download | cpython-git-2e15d60b832a0ab8aa214aea80f8d16019ee932e.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 'Python/import.c')
0 files changed, 0 insertions, 0 deletions