Package twisted :: Package internet :: Module defer
[show private | hide private]
[frames | no frames]

Module twisted.internet.defer

Support for results that aren't immediately available.

API Stability: stable

Maintainer: Glyph Lefkowitz<mailto:glyph@twistedmatrix.com>
Classes
Deferred This is a callback which will be put off until later.
DeferredList I combine a group of deferreds into one callback.
_nothing  

Exceptions
AlreadyCalledError  
TimeoutError  
AlreadyArmedError  

Function Summary
  succeed(result)
  fail(result)
  gatherResults(deferredList)
Returns list with result of given Deferreds.
  execute(callable, *args, **kw)
Create a deferred from a callable and arguments.
  logError(err)
  passthru(arg)
  timeout(deferred)
  _parseDListResult(l)

Variable Summary
int FAILURE
int SUCCESS

Function Details

execute(callable, *args, **kw)

Create a deferred from a callable and arguments.

Call the given function with the given arguments. Return a deferred which has been fired with its callback as the result of that invocation or its errback with a Failure for the exception thrown.

gatherResults(deferredList)

Returns list with result of given Deferreds.

This builds on DeferredList but is useful since you don't need to parse the result for success/failure.
Parameters:
deferredList
           (type=list of Deferreds)

Variable Details

FAILURE

Type:
int
Value:
0                                                                      

SUCCESS

Type:
int
Value:
1                                                                      

Generated by Epydoc 1.1 on Sat Feb 15 21:19:03 2003 http://epydoc.sf.net