#16307: Fix multiprocessing.Pool.map_async not calling its callbacks

Patch by Janne Karila.
This commit is contained in:
Hynek Schlawack 2012-10-27 12:53:02 +02:00
parent cc2f0421c7
commit 254af2644a
4 changed files with 23 additions and 1 deletions

View file

@ -297,7 +297,8 @@ class Pool(object):
'''
Asynchronous version of `map()` method.
'''
return self._map_async(func, iterable, mapstar, chunksize)
return self._map_async(func, iterable, mapstar, chunksize, callback,
error_callback)
def _map_async(self, func, iterable, mapper, chunksize=None, callback=None,
error_callback=None):