'Initialize a new instance, passing the time and delay
functions'

def __init__(self, timefunc=_time, delayfunc=time.sleep):

    self._queue = []
    self._lock = threading.RLock()
    self.timefunc = timefunc
    self.delayfunc = delayfunc
