[Twisted-Python] Arms Crisis
Andrew Bennetts
andrew-twisted at puzzling.org
Mon Jun 10 03:06:08 EDT 2002
On Mon, Jun 10, 2002 at 12:29:32AM +0200, Itamar Shtull-Trauring wrote:
> MM, wouldn't it changes the way thing work?
>
> d = Deferred().callback(1)
> d.addCallback(f)
> d.addCallback(g)
> d.arm()
>
> is not the same as what the new version would do:
>
> d = Deferred().callback(1)
> d.arm() # for emulating behaviour in current system
> d.addCallback(f)
This breaks currently. You can't add a callback to an already armed
deferred.
> d.addCallback(g)
>
> No? In new system, would g() get result of f()?
Yes, assuming what Glyph told me on IRC is true :)
-Andrew.
More information about the Twisted-Python
mailing list