[Twisted-Python] how to stop dataReceived while waiting a deferred to fire?
andrea at cpushare.com
Mon Feb 21 10:33:37 EST 2005
On Mon, Feb 21, 2005 at 04:21:06PM +1100, Andrew Bennetts wrote:
> On Mon, Feb 21, 2005 at 12:08:43AM -0500, James Y Knight wrote:
> > NetstringReceiver implementing it). LineReceiver's pauseProducing does
> > exactly what you want: 1) stops the socket from being read more and 2)
> > doesn't call lineReceived any more even if there are more lines already
> > buffered.
> Ooh, I didn't know LineReceiver had that feature. Nice!
Very nice indeed.
More information about the Twisted-Python