skip to navigation
skip to content

Not Logged In

ThreadQueue 0.1.0

A queue for threads, useful when you have a lot of threads.

Package Documentation

Latest Version: 0.1.2

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)
        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
File Type Py Version Uploaded on Size
ThreadQueue-0.1.0-py2.7.egg (md5) Python Egg 2.7 2013-12-15 8KB (md5) Source 2013-12-15 6KB
  • Downloads (All Versions):
  • 18 downloads in the last day
  • 94 downloads in the last week
  • 507 downloads in the last month