mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #12708: Add starmap() and starmap_async() methods (similar to itertools.starmap()) to multiprocessing.Pool.
Patch by Hynek Schlawack.
This commit is contained in:
parent
12f65d1fef
commit
de911b2915
6 changed files with 72 additions and 3 deletions
|
@ -1066,11 +1066,12 @@ ArrayProxy = MakeProxyType('ArrayProxy', (
|
|||
|
||||
PoolProxy = MakeProxyType('PoolProxy', (
|
||||
'apply', 'apply_async', 'close', 'imap', 'imap_unordered', 'join',
|
||||
'map', 'map_async', 'terminate'
|
||||
'map', 'map_async', 'starmap', 'starmap_async', 'terminate'
|
||||
))
|
||||
PoolProxy._method_to_typeid_ = {
|
||||
'apply_async': 'AsyncResult',
|
||||
'map_async': 'AsyncResult',
|
||||
'starmap_async': 'AsyncResult',
|
||||
'imap': 'Iterator',
|
||||
'imap_unordered': 'Iterator'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue