drop unused arg

pull/117339/head
J. Nick Koston 2024-08-21 08:48:46 -05:00
parent 83fdac6df8
commit 8a9fe6a24a
No known key found for this signature in database
1 changed files with 2 additions and 5 deletions

View File

@ -63,13 +63,10 @@ def join_or_interrupt_threads(
class InterruptibleThreadPoolExecutor(ThreadPoolExecutor):
"""A ThreadPoolExecutor instance that will not deadlock on shutdown."""
def shutdown(
self, *args: Any, join_threads_or_timeout: bool = True, **kwargs: Any
) -> None:
def shutdown(self, *args: Any, **kwargs: Any) -> None:
"""Shutdown with interrupt support added."""
super().shutdown(wait=False, cancel_futures=True)
if join_threads_or_timeout:
self.join_threads_or_timeout()
self.join_threads_or_timeout()
def join_threads_or_timeout(self) -> None:
"""Join threads or timeout."""