def wait(self):
        """Wait for results, blocking until all have arrived."""

        while 1:
            try:
                self.poll(True)
            except NoResultsPending:
                break
Wait for results, blocking until all have arrived.
recipes/Python/435883_Easy_use_objectoriented_thread_pool/recipe-435883.py