twisted.internet.interfaces.IPushProducer(IProducer)
interface documentationtwisted.internet.interfaces
View Source
(View In Hierarchy)
Known subclasses: twisted.internet.endpoints._IProcessTransportWithConsumerAndProducer, twisted.web.iweb.IBodyProducer
Known implementations: twisted.internet._pollingfile._PollableReadPipe, twisted.internet._producer_helpers._PullToPush, twisted.internet._win32stdio.StandardIO, twisted.internet.abstract.FileDescriptor, twisted.internet.iocpreactor.abstract.FileHandle, twisted.protocols.tls._ProducerMembrane, twisted.test.proto_helpers.StringTransport, twisted.web._http2.H2Connection, twisted.web._http2.H2Stream, twisted.web._newclient.TransportProxyProducer, twisted.web.http._NoPushProducer, twisted.web.http.HTTPChannel
A push producer, also known as a streaming producer is expected to produce (write to this consumer) data on a continuous basis, unless it has been paused. A paused push producer will resume producing after its resumeProducing() method is called. For a push producer which is not pauseable, these functions may be noops.
Method | pauseProducing | Pause producing data. |
Method | resumeProducing | Resume producing data. |
Inherited from IProducer:
Method | stopProducing | Stop producing data. |
Pause producing data.
Tells a producer that it has produced too much data to process for the time being, and to stop until resumeProducing() is called.
Resume producing data.
This tells a producer to re-add itself to the main loop and produce more data for its consumer.