'Schedule a function call at a specific time in the future.'

def queue_call(self, delay, callback, *args, **kwds):

    if (delay is None):
        self.current.append((callback, args, kwds))
        return
    if (delay < 1000000000.0):
        when = (delay + time.time())
    else:
        when = delay
    self.insort_event_right((when, callback, args, kwds))
