[Twisted-Python] how to ensure writes to stdout via stdio.StandardIO are completed before we shutdown the reactor?
rutt.4 at osu.edu
Sat Feb 11 14:02:15 EST 2012
That worked so well, that I was speechless for awhile. Thanks!
On Wed, Feb 1, 2012 at 1:01 AM, <exarkun at twistedmatrix.com> wrote:
> On 03:59 am, rutt.4 at osu.edu wrote:
>>Hi twisted community,
>>What’s the best way to ensure writes to stdout via stdio.StandardIO
>>are completed before we shutdown the reactor? The use case is to
>>emit an error message before we shutdown the reactor and stop our
>>program. Dummy code snippet:
> If you call the transport's loseConnection method, then the protocol's
> connectionLost method will be called after the output buffer is
> completely written.
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python