Skip to content

Commit

Permalink
drop unused arg
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Aug 21, 2024
1 parent 83fdac6 commit 8a9fe6a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions homeassistant/util/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 8a9fe6a

Please sign in to comment.