Flush write buffers, if applicable. This is not implemented for read-only and non-blocking streams.
io/IOBase.flush
IOBase.flush