Thread Queue
===========

Thread Queue provides an easy to use interface to manage a queue
of threads. If you have many methods that will take long to run, you
can use this package to queue several up at the same time. Typical
usage often looks like this::

    #!/usr/bin/env python

    from threadqueue import ThreadQueue
    from time import sleep

    def long_method(some_int):
        print('Starting method %d' % some_int)
        sleep(5)
        print('Finished method %d' % some_int)

    thread_queue = ThreadQueue(5) # Maximum of 5 threads running
    for i in range(0, 10):
        thread_queue.enqueue(long_method, i) # You can pass arguments
