Add threaded parallel_map
This commit is contained in:
parent
154cc52fa6
commit
0ff0b49a79
9 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…
Add table
Add a link
Reference in a new issue