'Args:
func: the function to run'

def __init__(self, func, pausable=True):

    super(LoopThread, self).__init__()
    self._func = func
    self._pausable = pausable
    if pausable:
        self._lock = threading.Lock()
    self.daemon = True
