Hi,

I think it would be very helpful to have an additional argument (cancel for 
example) added to Executor.shutdown that cancels all pending futures submitted 
to the executor. Then context manager would gain the ability to abort all 
futures incase of a exception, additionally this would also implement the 
missing cuterpart of the multiprocessing module terminate, currently we only 
have close.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/ZSUIFN5GTDO56H6LLOPXOLQK7EQQZJHJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to