Home Assistant Unofficial Reference 2024.12.1
homeassistant.util.thread Namespace Reference

Classes

class  ThreadWithException
 

Functions

None async_raise (int tid, Any exctype)
 
None deadlock_safe_shutdown ()
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
int THREADING_SHUTDOWN_TIMEOUT = 10
 

Detailed Description

Threading util helpers.

Function Documentation

◆ async_raise()

None homeassistant.util.thread.async_raise ( int  tid,
Any  exctype 
)
Raise an exception in the threads with id tid.

Definition at line 38 of file thread.py.

◆ deadlock_safe_shutdown()

None homeassistant.util.thread.deadlock_safe_shutdown ( )
Shutdown that will not deadlock.

Definition at line 14 of file thread.py.

Variable Documentation

◆ _LOGGER

homeassistant.util.thread._LOGGER = logging.getLogger(__name__)
private

Definition at line 11 of file thread.py.

◆ THREADING_SHUTDOWN_TIMEOUT

int homeassistant.util.thread.THREADING_SHUTDOWN_TIMEOUT = 10

Definition at line 9 of file thread.py.