[Twisted-Python] Deferreds

Itamar Shtull-Trauring twisted at itamarst.org
Fri Apr 5 04:02:56 EST 2002


Andrew Bennetts wrote:

>   1) There's currently no way to cancel a Deferred
>   2) It looks like you can fire a Deferred multiple times.

Cancel? That's not really possible. You don't know when the .arm() was 
called, so for all you know the callbacks will be called immediately 
when you passed the result.

> Point 2 surprised me; I expected Deferreds to be single shot (though I can
> imagine that a multi-use Deferred would be ideal for some situations).

I think yer right and that this shouldn't be possible.





More information about the Twisted-Python mailing list