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
2016-10-07 17:37:54
Comments
Leave a Comment

Please login to continue.