l.b.s.c._.TwistedThreadScheduler(BaseScheduler) : class documentation

Part of lp.bugs.scripts.checkwatches View In Hierarchy

Run jobs in threads, chaperoned by Twisted.
Method __init__ Create a new TwistedThreadScheduler.
Method schedule Add a job to be run.
Method run Run the jobs.
def __init__(self, num_threads, install_signal_handlers=True):
Create a new TwistedThreadScheduler.
Parametersnum_threadsThe number of threads to allocate to the thread pool. (type: int)
install_signal_handlersWhether the Twisted reactor should install signal handlers or not. This is intented for testing - set to False to avoid layer violations - but may be useful in other situations. (type: bool)
def schedule(self, func, *args, **kwargs):
Add a job to be run.
def run(self):
Run the jobs.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.