[Twisted-Python] getProcessOutput - Can it be made to return 'output' instead of differed
Senthil Kumaran
orsenthil at gmail.com
Tue Sep 28 07:40:53 MDT 2010
On Tue, Sep 28, 2010 at 12:51:22PM -0000, exarkun at twistedmatrix.com wrote:
>
> If you're removing the code that blocks, then you should be able to stop
> using deferToThread. Then you just have to call getProcessOutput to get
> your `d` above (or another function that calls it and perhaps adds a
> callback or two).
Thanks for the response. I could recognize this option, I just thought
that structurally it might odd as only one of them is a defer from a process while
others will be from thread. But I guess, it does not matter.
I shall try this approach.
Thanks,
Senthil
More information about the Twisted-Python
mailing list