Module e.c.u.defer

Part of elisa.core.utils

No module docstring
Line # Kind Name Docs
31 Function succeed see twisted.internet.defer.succeed.
41 Function fail see twisted.internet.defer.fail. The biggest difference is that the
53 Function execute see twisted.internet.defer.execute.
67 Function timeout Undocumented
75 Function deferred_accumulator Accumulator to use with gobject signals where callbacks are supposed to
def succeed(result):
see twisted.internet.defer.succeed.
Returns (type: Deferred )
def fail(result=None):
see twisted.internet.defer.fail. The biggest difference is that the twisted API allows you to call this without any parameters, which leads to an error. See http://twistedmatrix.com/trac/ticket/3145.
Returns (type: Deferred )
def execute(callable, *args, **kw):
see twisted.internet.defer.execute.
Returns (type: Deferred )
def timeout(deferred):
Undocumented
def deferred_accumulator(invocation_hint, return_accu, handler_return):
Accumulator to use with gobject signals where callbacks are supposed to return a Deferred. With this, emit() will return a list of all the Deferred returned by the connected callbacks. It ignores callback return values that are not Deferreds.
Parametersinvocation_hint(signal_id, detail, run_type) (this parameter is ignored) (type: tuple )
return_accua list of Deferred (or possibly None) (type: list )
handler_returnThe return value of the signal handler (type: elisa.core.utils.Deferred )
Returnsa tuple containing True and a list of deferreds. (type: tuple )
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.