Package flumotion :: Package twisted :: Module defer :: Class Resolution
[show private | hide private]
[frames | no frames]

Class Resolution

Known Subclasses:
BusResolution

I am a helper class to make sure that the deferred is fired only once with either a result or exception.
Method Summary
  __init__(self)
  callback(self, result)
Make the result succeed, triggering the callbacks with the given result.
  cleanup(self)
Clean up any resources related to the resolution.
  errback(self, exception)
Make the result fail, triggering the errbacks with the given exception.

Instance Variable Summary
twisted.internet.defer.Deferred d: the deferred that gets fired as part of the resolution

Method Details

callback(self, result)

Make the result succeed, triggering the callbacks with the given result. If a result was already reached, do nothing.

cleanup(self)

Clean up any resources related to the resolution. Subclasses can implement me.

errback(self, exception)

Make the result fail, triggering the errbacks with the given exception. If a result was already reached, do nothing.

Instance Variable Details

d

the deferred that gets fired as part of the resolution
Type:
twisted.internet.defer.Deferred

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net