zeehio / parmap

Easy to use map and starmap python equivalents
Apache License 2.0
144 stars 9 forks source link

Allow end-user to gracefully exit parmap during processing #16

Closed catubc closed 6 years ago

catubc commented 6 years ago

Is there an accepted/nice way to allow user to CTRL-C exit out of parmap.

I found this on stackoverflow which seems related:

https://stackoverflow.com/questions/11312525/catch-ctrlc-sigint-and-exit-multiprocesses-gracefully-in-python