Part of twisted.internet View Source
Extended thread dispatching support.
For basic support see reactor threading API docs.
Maintainer: Itamar Shtull-TrauringFunction | deferToThread | Run function in thread and return result as Deferred. |
Function | callMultipleInThread | Run a list of functions in the same thread. |
Function | blockingCallFromThread | Run a function in the reactor from a thread, and wait for the result synchronously, i.e. until the callback chain returned by the function get a result. |
Function | _putResultInDeferred | Run a function and give results to a Deferred. |
Function | _runMultiple | Run a list of functions. |
Run a list of functions in the same thread.
tupleList should be a list of (function, argsList, kwargsDict) tuples.Parameters | reactor | The IReactorThreads
provider which will be used to schedule the function call.
|
f | the callable to run in the reactor thread (type: any callable. ) | |
a | the arguments to pass to f .
| |
kw | the keyword arguments to pass to f .
| |
Returns | the result of the callback chain. | |
Raises | any error raised during the callback chain. |