File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -605,7 +605,7 @@ def result_iterator():
605
605
future .cancel ()
606
606
return result_iterator ()
607
607
608
- def shutdown (self , wait = True ):
608
+ def shutdown (self , wait = True , * , cancel_futures = False ):
609
609
"""Clean-up the resources associated with the Executor.
610
610
611
611
It is safe to call this method several times. Otherwise, no other
@@ -615,6 +615,9 @@ def shutdown(self, wait=True):
615
615
wait: If True then shutdown will not return until all running
616
616
futures have finished executing and the resources used by the
617
617
executor have been reclaimed.
618
+ cancel_futures: If True then shutdown will cancel all pending
619
+ futures. Futures that are completed or running will not be
620
+ cancelled.
618
621
"""
619
622
pass
620
623
You can’t perform that action at this time.
0 commit comments