Function std::old_io::stdio::flushUnstable [-] [+] [src]

pub fn flush()

Flushes the local task's stdout handle.

By default, this stream is a line-buffering stream, so flushing may be necessary to ensure that all output is printed to the screen (if there are no newlines printed).

Note that logging macros do not use this stream. Using the logging macros will emit output to stderr, and while they are line buffered the log messages are always terminated in a newline (no need to flush).