Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
A drop-in replacement for Queue.queue, which protects the consumer's thread
from being killed before the queue is empty.

When to use it:
    When you are implementing pool of workers, AND:
      (a) the client does not promise to signal to the consumer thread that
          it is finished, and may shut-down, AND
      (b) the client does not promise to remain alive until the consumer
          thread is complete
      (c) you do not have a maximum queue size.(more...)

src/n/o/nonblockingloghandler-1.1.2/test/test_autoclosing_queue.py   nonblockingloghandler(Download)
import unittest
import autoclosingqueue
class TestAutoClosingQueue(unittest.TestCase):