Package buildbot :: Module util :: Class CancelableDeferred
[frames | no frames]

Class CancelableDeferred

Deferred --+
           |
          CancelableDeferred


I am a version of Deferred that can be canceled by calling my .cancel() method. After being canceled, no callbacks or errbacks will be executed.
Method Summary
  __init__(self)
  cancel(self)
    Inherited from Deferred
  __repr__(self)
  __str__(self)
  addBoth(self, callback, *args, **kw)
Convenience method for adding a single callable as both a callback and an errback.
  addCallback(self, callback, *args, **kw)
Convenience method for adding just a callback.
  addCallbacks(self, callback, errback, callbackArgs, callbackKeywords, errbackArgs, errbackKeywords)
Add a pair of callbacks (success and error) to this Deferred.
  addErrback(self, errback, *args, **kw)
Convenience method for adding just an errback.
  callback(self, result)
Run all success callbacks that have been added to this Deferred.
  chainDeferred(self, d)
Chain another Deferred to this Deferred.
  errback(self, fail)
Run all error callbacks that have been added to this Deferred.
  pause(self)
Stop processing on a Deferred until unpause() is called.
  setTimeout(self, seconds, timeoutFunc, *args, **kw)
Set a timeout function to be triggered if I am not called.
  unpause(self)
Process all callbacks made since pause() was called.

Class Variable Summary
    Inherited from Deferred
Implements __implemented__ = <implementedBy twisted.internet.defer....
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
int called = 0                                                                     
bool debug = False
int paused = 0                                                                     
NoneType timeoutCall = None                                                                  

Generated by Epydoc 2.1 on Sun Dec 10 22:04:44 2006 http://epydoc.sf.net