def handleGenerator(self, generator):
        try:
            result = generator.next()
        except __HOLE__:
            self.generators.remove(generator)
        else:
            if isinstance(result, types.GeneratorType):
                self.generators.insert(0, result)
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/asynctaskqueue.py/AsyncTaskQueue.handleGenerator