mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
#16307: Fix multiprocessing.Pool.map_async not calling its callbacks
Patch by Janne Karila.
This commit is contained in:
parent
cc2f0421c7
commit
254af2644a
4 changed files with 23 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue