python.task_manager.worker_thread module

Worker thread for the background manager.

class WorkerThread(results_dispatcher, parent=None)[source]

Bases: sphinx.ext.autodoc.importer._MockObject

Asynchronous worker thread that can run tasks in a separate thread. This implementation implements a custom run method that loops over tasks until asked to quit.

run()[source]

The main thread run function. Loops over tasks until asked to exit.

run_task(task)[source]

Run the specified task

Parameters:task – The task to run
shut_down()[source]

Shut down the thread and wait for it to exit before returning