Flush output after writing a line.
Delimited-continuation based threaded style