MCPcopy Index your code
hub / github.com/python/cpython / pool_in_process

Function pool_in_process

Lib/test/_test_multiprocessing.py:5512–5516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5510 return x*x
5511
5512def pool_in_process():
5513 pool = multiprocessing.Pool(processes=4)
5514 x = pool.map(_afunc, [1, 2, 3, 4, 5, 6, 7])
5515 pool.close()
5516 pool.join()
5517
5518class _file_like(object):
5519 def __init__(self, delegate):

Callers

nothing calls this directly

Calls 4

mapMethod · 0.95
closeMethod · 0.95
joinMethod · 0.95
PoolMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…