[Twisted-Python] Deferreds and progress

Itamar Turner-Trauring itamar at futurefoundries.com
Thu Jul 26 14:32:34 EDT 2012


On Thu, Jul 26, 2012 at 1:51 PM, Tobias Oberstein <
tobias.oberstein at tavendo.de> wrote:

> With Twisted, a Deferred can have it's callback only triggered once.****
>
> ** **
>
> With Deferreds in popular JavaScript libraries (when.js, jQuery Deferred,
> upcoming JS PromiseA proposal),****
>
> there is a "progress()" callback for receiving results incrementally (or
> merely reporting on progress****
>
> until the final result arrives). Progress can be triggered more than once.
> ****
>
> ** **
>
> Is there anything comparable in Twisted?
>

For chunks of data, Protocols; e.g. twisted.web.client.Agent delivers HTTP
response bodies to a Protocol instance. More generally, Glyph is working on
this: http://twistedmatrix.com/trac/ticket/1956
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20120726/35b17f4e/attachment.htm 


More information about the Twisted-Python mailing list