Home Assistant Unofficial Reference 2024.12.1
homeassistant.util.thread.ThreadWithException Class Reference
Inheritance diagram for homeassistant.util.thread.ThreadWithException:
[legend]
Collaboration diagram for homeassistant.util.thread.ThreadWithException:
[legend]

Public Member Functions

None raise_exc (self, Any exctype)
 

Detailed Description

A thread class that supports raising exception in the thread from another thread.

Based on
https://stackoverflow.com/questions/323972/is-there-any-way-to-kill-a-thread/49877671

Definition at line 55 of file thread.py.

Member Function Documentation

◆ raise_exc()

None homeassistant.util.thread.ThreadWithException.raise_exc (   self,
Any  exctype 
)
Raise the given exception type in the context of this thread.

Definition at line 63 of file thread.py.


The documentation for this class was generated from the following file: