Skip to main content

flush

Function flush 

Source
pub fn flush()
Expand description

Flushes the default output file.

§Description

Saves any written data to the default output file. Equivalent to io.output():flush().

§Examples

io.write("working...")
io.flush()               -- make it visible before a newline arrives

§See also

file::flush