class documentation
class PoolHelper: (source)
A PoolHelper
constructs a threadpool.ThreadPool
that doesn't actually use threads, by using the internal interfaces in twisted._threads
.
Method | __init__ |
Create a PoolHelper . |
Method | perform |
Perform all currently scheduled "coordination", which is the work involved in delegating work to other threads. |
Instance Variable | perform |
a 0-argument callable that will perform one unit of "coordination" - work involved in delegating work to other threads - and return True if it did any work, False otherwise. |
Instance Variable | threadpool |
a modified threadpool.ThreadPool to test. |
Instance Variable | workers |
the workers which represent the threads within the pool - the workers other than the coordinator. |
Create a PoolHelper
.
Parameters | |
test | a test case attached to this helper. |
*args:The arguments passed to a threadpool.ThreadPool . | Undocumented |
**kwargs:The arguments passed to a threadpool.ThreadPool | Undocumented |
Perform all currently scheduled "coordination", which is the work involved in delegating work to other threads.