Add threaded parallel_map
This commit is contained in:
parent
30d148078c
commit
0a91cc7287
1 changed files with 225 additions and 6 deletions
|
|
@ -128,7 +128,7 @@ def parallel_map(
|
|||
pass
|
||||
|
||||
should_stop.set()
|
||||
except KeyboardInterrupt:
|
||||
except Exception:
|
||||
for p in processes:
|
||||
p.terminate()
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Reference in a new issue