Re: [Twisted-Python] Deferreds and progress

2012-07-27 Thread Reza Lotun
On Jul 26, 2012, at 11:49 AM, Tobias Oberstein wrote: >>> On Thu, Jul 26, 2012 at 1:51 PM, Tobias Oberstein >>> 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 Prom

Re: [Twisted-Python] Deferreds and progress

2012-07-26 Thread Itamar Turner-Trauring
On Thu, Jul 26, 2012 at 2:44 PM, Tobias Oberstein < tobias.oberst...@tavendo.de> wrote: > > Thanks for pointing. So if something like this is added to Twisted, it > will be within producer/consumer, and not added to Deferred? > > The reason I am asking: Autobahn implements RPC over WebSocket, and

Re: [Twisted-Python] Deferreds and progress

2012-07-26 Thread Tobias Oberstein
>>On Thu, Jul 26, 2012 at 1:51 PM, Tobias Oberstein >> 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 re

Re: [Twisted-Python] Deferreds and progress

2012-07-26 Thread Itamar Turner-Trauring
On Thu, Jul 26, 2012 at 1:51 PM, Tobias Oberstein < tobias.oberst...@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

[Twisted-Python] Deferreds and progress

2012-07-26 Thread Tobias Oberstein
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 res