| TaskQueue | A task queue, consisting of a queue and a number of workers. |
| Task | A task object represents some unit of work to be done. |
| TaskWorker | A worker thread that runs tasks from a TaskQueue. |
| TaskQueue.get | Get a task from the task queue. |
| TaskQueue.put | Add a task to the task queue, and spawn a worker if we’re not full. |
| Task.is_alive | Return true if this task hasn’t been finished. |
| Task.join | Wait for this task to finish. |
| TaskWorker.run | Repeatedly get tasks from the TaskQueue and execute them. |
Bases: object
A task queue, consisting of a queue and a number of workers.
| Parameters: |
|
|---|
Bases: object
A task object represents some unit of work to be done.
| Parameters: |
|
|---|