PausableThreadCallback

class support.threading_util.pausable_thread.PausableThreadCallback(callback, name=None, *args)

Bases: threading.Thread

A thread that runs the same callback over an over again, with some predetermined wait time. This thread can be paused, unpaused, and stopped in a thread-safe manner.

Methods Summary

pause()

paused()

run()

Method representing the thread’s activity.

running()

stop()

stopped()

unpause()

Methods Documentation

pause()
paused()
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.

running()
stop()
stopped()
unpause()