Function std::old_io::stdio::stdoutUnstable
[-] [+]
[src]
pub fn stdout() -> LineBufferedWriter<StdWriter>
Creates a line-buffered handle to the stdout of the current process.
Note that this is a fairly expensive operation in that at least one memory allocation is performed. Additionally, this must be called from a runtime task context because the stream returned will be a non-blocking object using the local scheduler to perform the I/O.
Care should be taken when creating multiple handles to an output stream for a single process. While usage is still safe, the output may be surprising if no synchronization is performed to ensure a sane output.