tomwer.core.utils.threads.LoopThread#

class tomwer.core.utils.threads.LoopThread(time_between_loops)#

Thread looping on a defined process, as long not receiving the stopEvent. Wait for _time_between_loops between two loops

process()#
quitEvent = <threading.Event at 0x70d983143e00: unset>#

Event to quit the Thread

run()#

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

should_process()#
startEvent = <threading.Event at 0x70d983143c20: unset>#

Event to restart the loop on process

stopEvent = <threading.Event at 0x70d983143da0: unset>#

Event to stop the loop on process