Apr-10-2022, 07:37 PM
If the thread is waiting for a
threading.Event
or a threading.Condition
, you can notify the Event or the Condition. Another way is to wait with a timeout to check regularly if the thread must exit. It would help if you explain what the thread actually does.