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

Method map_async

Lib/multiprocessing/pool.py:463–469  ·  view source on GitHub ↗

Asynchronous version of `map()` method.

(self, func, iterable, chunksize=None, callback=None,
            error_callback=None)

Source from the content-addressed store, hash-verified

461 return result
462
463 def map_async(self, func, iterable, chunksize=None, callback=None,
464 error_callback=None):
465 '''
466 Asynchronous version of `map()` method.
467 '''
468 return self._map_async(func, iterable, mapstar, chunksize, callback,
469 error_callback)
470
471 def _map_async(self, func, iterable, mapper, chunksize=None, callback=None,
472 error_callback=None):

Callers 6

test_terminateMethod · 0.95
test_empty_iterableMethod · 0.95
test_map_asyncMethod · 0.80
test_map_chunksizeMethod · 0.80
test_contextMethod · 0.80

Calls 1

_map_asyncMethod · 0.95

Tested by 6

test_terminateMethod · 0.76
test_empty_iterableMethod · 0.76
test_map_asyncMethod · 0.64
test_map_chunksizeMethod · 0.64
test_contextMethod · 0.64