def __init__(self, func, thread_name, wait_between_runs=1):
        """
        Run the given func continuously until either shutdown_event is set, or the python interpreter exits.
        :param func: the function to run. This should accept no arguments.
        :param thread_name: the name of the thread to use during logging and debugging
        :param wait_between_runs: how many seconds to wait in between func calls.
        """
        self.shutdown_event = compat.Event()
        super(InfiniteLoopThread, self).__init__(thread_name=thread_name, shutdown_event=self.shutdown_event)
        self.func = func
        self.wait = wait_between_runs
def __init__ ( self , func , thread_name , wait_between_runs = 1 ) : self . shutdown_event = compat . Event ( ) super ( InfiniteLoopThread , self ) . __init__ ( thread_name = thread_name , shutdown_event = self . shutdown_event ) self . func = func self . wait = wait_between_runs
Run the given func continuously until either shutdown_event is set, or the python interpreter exits.
        :param func: the function to run. This should accept no arguments.
        :param thread_name: the name of the thread to use during logging and debugging
        :param wait_between_runs: how many seconds to wait in between func calls.