File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -364,9 +364,9 @@ def run(self):
364
364
if self .is_shutting_down ():
365
365
self .flag_executor_shutting_down ()
366
366
367
- # If only canceled futures remain in pending_work_items, we
368
- # should purge them now to avoid waiting forever in our
369
- # subsequent call to wait_result_broken_or_wakeup .
367
+ # When only canceled futures remain in pending_work_items, our
368
+ # next call to wait_result_broken_or_wakeup would hang forever.
369
+ # This makes sure we have some running futures or none at all .
370
370
self .add_call_item_to_queue ()
371
371
372
372
# Since no new work items can be added, it is safe to shutdown
Original file line number Diff line number Diff line change @@ -1367,6 +1367,7 @@ Thomas Perl
1367
1367
Mathieu Perreault
1368
1368
Mark Perrego
1369
1369
Trevor Perrin
1370
+ Yonatan Perry
1370
1371
Gabriel de Perthuis
1371
1372
Tim Peters
1372
1373
Benjamin Peterson
You can’t perform that action at this time.
0 commit comments