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 object>#

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 object>#

Event to restart the loop on process

stopEvent = <threading.Event object>#

Event to stop the loop on process