def dismissWorkers(self, n=1):
        'Tell C{n} worker threads to quit after they finish with their current job.'
        for _ in xrange(n):
            try: self._workers.pop().dismissed = True
            except KeyError: break
Tell C{n} worker threads to quit after they finish with their current job.
recipes/Python/502291_Yet_another_threadpool_module/recipe-502291.py