Module t.i.threads

Part of twisted.internet View Source

Extended thread dispatching support.

For basic support see reactor threading API docs.

API Stability: stable

Maintainer: Itamar Shtull-Trauring
Function _putResultInDeferred Run a function and give results to a Deferred.
Function deferToThread Run function in thread and return result as Deferred.
Function _runMultiple Run a list of functions.
Function callMultipleInThread Run a list of functions in the same thread.
def _putResultInDeferred(deferred, f, args, kwargs): (source)
Run a function and give results to a Deferred.
def deferToThread(f, *args, **kwargs): (source)
Run function in thread and return result as Deferred.
def _runMultiple(tupleList): (source)
Run a list of functions.
def callMultipleInThread(tupleList): (source)

Run a list of functions in the same thread.

tupleList should be a list of (function, argsList, kwargsDict) tuples.
API Documentation for twisted, generated by pydoctor.