Worker Controller Threads
Thread running an infinite loop which for every iteration calls its on_iteration() method.
This also implements graceful shutdown of the thread by providing the stop() method.
This is the method called for every iteration and must be implemented by every subclass of BackgroundThread.
This handler is run at thread start, just before the infinite loop.
This handler is run when the thread is shutdown.
This is the body of the thread.
To start the thread use start() instead.
Gracefully shutdown the thread.
Thread continuously sending tasks in the queue to the pool.
The task queue, a Queue.Queue instance.
The callback used to process tasks retrieved from the ready_queue.
Get tasks from bucket queue and apply the task callback.