def queue_call(self, delay, callback, *args, **kwds):
if delay is None:<EOL><INDENT>self.current.append((callback, args, kwds))<EOL>return<EOL><DEDENT>if delay < <NUM_LIT>:<EOL><INDENT>when = delay + self.clock.now()<EOL><DEDENT>else:<EOL><INDENT>when = delay<EOL><DEDENT>self.insort_event_right((when, callback, args, kwds))<EOL>
Schedule a function call at a specific time in the future.