drop unused arg
parent
83fdac6df8
commit
8a9fe6a24a
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue