t.i.t.deferToThread(f, *args, **kwargs) : function documentation

Part of twisted.internet.threads View Source

Run a function in a thread and return the result as a Deferred.
ParametersfThe function to call.
*argspositional arguments to pass to f.
**kwargskeyword arguments to pass to f.
ReturnsA Deferred which fires a callback with the result of f, or an errback with a twisted.python.failure.Failure if f throws an exception.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.