MCPcopy Index your code
hub / github.com/RustPython/RustPython / pool_in_process

Function pool_in_process

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

Source from the content-addressed store, hash-verified

5186 return x*x
5187
5188def pool_in_process():
5189 pool = multiprocessing.Pool(processes=4)
5190 x = pool.map(_afunc, [1, 2, 3, 4, 5, 6, 7])
5191 pool.close()
5192 pool.join()
5193
5194class _file_like(object):
5195 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