Metadata-Version: 1.0
Name: ThreadQueue
Version: 0.1.0
Summary: A queue for threads, useful when you have a lot of threads.
Home-page: http://pypi.python.org/pypi/ThreadQueue/
Author: R. Jagerman
Author-email: rjagerman@gmail.com
License: MIT
Description: 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
        
Platform: UNKNOWN
