def wait(self, jobs=None, timeout=-1):
        tic = time.time()
        if jobs is None:
            theids = self.outstanding
        else:
            if isinstance(jobs, (int, str, AsyncResult)):
                jobs = [jobs]
            theids = set()
            for job in jobs:
                if isinstance(job, int):
                    # index access
                    job = self.history[job]
                elif isinstance(job, AsyncResult):
                    list(map(theids.add, job.msg_ids))
                    continue
                theids.add(job)
        if not theids.intersection(self.outstanding):
            return True
        self.spin()
        while theids.intersection(self.outstanding):
            if timeout >= 0 and ( time.time()-tic ) > timeout:
                break
            time.sleep(1e-3)
            self.spin()
        return len(theids.intersection(self.outstanding)) == 0
    
    #--------------------------------------------------------------------------
    # Control methods
    #--------------------------------------------------------------------------
(:class:`numbers.Integral`) Red.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Client.wait--crossover with--dataset/ETHPy150Open dahlia/wand/wand/color.py/Color.red_quantum