A PoolHelper constructs a threadpool.ThreadPool that doesn't actually use threads, by using the internal interfaces in twisted._threads.

Instance Variable performCoordination 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 workers the workers which represent the threads within the pool - the workers other than the coordinator. (type: list of 2-tuple of (IWorker, workPerformer) where workPerformer is a 0-argument callable like performCoordination.)
Instance Variable threadpool a modified threadpool.ThreadPool to test. (type: MemoryPool)
Method __init__ Create a PoolHelper.
Method performAllCoordination Perform all currently scheduled "coordination", which is the work involved in delegating work to other threads.
performCoordination =
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.
workers =
the workers which represent the threads within the pool - the workers other than the coordinator. (type: list of 2-tuple of (IWorker, workPerformer) where workPerformer is a 0-argument callable like performCoordination.)
threadpool =
a modified threadpool.ThreadPool to test. (type: MemoryPool)
def __init__(self, testCase, *args, **kwargs):

Create a PoolHelper.

ParameterstestCasea test case attached to this helper.
def performAllCoordination(self):

Perform all currently scheduled "coordination", which is the work involved in delegating work to other threads.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.