def _foreach_worker(q, action):
    while True:
        try:
            item = q.popleft()
        except __HOLE__:
            break

        action(item)
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/parallel.py/_foreach_worker