Classes | |
| class | InterruptibleThreadPoolExecutor |
Functions | |
| None | _log_thread_running_at_shutdown (str name, int ident) |
| set[Thread] | join_or_interrupt_threads (set[Thread] threads, float timeout, bool log) |
Variables | |
| int | _JOIN_ATTEMPTS = 10 |
| _LOGGER = logging.getLogger(__name__) | |
| int | EXECUTOR_SHUTDOWN_TIMEOUT = 10 |
| int | MAX_LOG_ATTEMPTS = 2 |
Executor util helpers.
|
private |
Log the stack of a thread that was still running at shutdown.
Definition at line 25 of file executor.py.
| set[Thread] homeassistant.util.executor.join_or_interrupt_threads | ( | set[Thread] | threads, |
| float | timeout, | ||
| bool | log | ||
| ) |
Attempt to join or interrupt a set of threads.
Definition at line 37 of file executor.py.
|
private |
Definition at line 20 of file executor.py.
|
private |
Definition at line 16 of file executor.py.
| int homeassistant.util.executor.EXECUTOR_SHUTDOWN_TIMEOUT = 10 |
Definition at line 22 of file executor.py.
| int homeassistant.util.executor.MAX_LOG_ATTEMPTS = 2 |
Definition at line 18 of file executor.py.