Commit Graph

3 Commits

Author SHA1 Message Date
Brian Warner
caabb3510c add OneShotObserver and SequenceObserver, with tests
This factors out the various "give me a Deferred for an value that may or may
not eventually be successfully generated" routines in _DeferredWormhole. It
uses an eventual-send to fire the Deferreds to avoid plan-coordination
hazards when the attached callbacks then call back into the Wormhole object
before the rest of the state transition has finished.
2018-02-26 17:50:40 -08:00
Brian Warner
e3964cd797 rearrange source tree 2015-02-15 09:29:28 -08:00
Brian Warner
3ddfac3eeb copy eventual.py/observer.py from Foolscap 2015-02-10 18:34:34 -08:00