Package flumotion :: Package worker :: Package checks :: Module video :: Class Resolution
[show private | hide private]
[frames | no frames]

Class Resolution


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, calling the callbacks with the given result.
  errback(self, exception)
Make the result fail, calling 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, calling the callbacks with the given result. If a result was already reached, do nothing.

errback(self, exception)

Make the result fail, calling 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 Aug 2 15:16:42 2005 http://epydoc.sf.net