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 2015-05-24 20:04:00.