Add threaded parallel_map

This commit is contained in:
Andras Schmelczer 2022-06-30 17:22:16 +02:00
parent 154cc52fa6
commit 0ff0b49a79
9 changed files with 225 additions and 6 deletions

View file

@ -128,7 +128,7 @@ def parallel_map(
pass
should_stop.set()
except KeyboardInterrupt:
except Exception:
for p in processes:
p.terminate()
finally: