From: Berker Peksag Date: Thu, 21 Jan 2016 22:00:06 +0000 (+0200) Subject: Issue #18620: Improve Pool examples in multiprocessing documentation X-Git-Tag: v3.6.0a1~721 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e15d60b832a0ab8aa214aea80f8d16019ee932e;p=thirdparty%2FPython%2Fcpython.git 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. --- 2e15d60b832a0ab8aa214aea80f8d16019ee932e