multiprocessing.pool.Pool.map()

map(func, iterable[, chunksize])

A parallel equivalent of the map() built-in function (it supports only one iterable argument though). It blocks until the result is ready.

This method chops the iterable into a number of chunks which it submits to the process pool as separate tasks. The (approximate) size of these chunks can be specified by setting chunksize to a positive integer.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.