twisted._threads.ThreadWorker.__init__(self, startThread, queue)
method documentationtwisted._threads.__init__.ThreadWorker
View Source
Create a ThreadWorker
with a function to start a thread and a queue to use to communicate with that thread.
Parameters | startThread | a callable that takes a callable to run in another thread. (type: callable taking a 0-argument callable and returning nothing.) |
queue | A Queue to use to give tasks to the thread created by startThread . | |
queue | Queue |
Function | work | Undocumented |