close

open override fun close()(source)

Flushes pending records and closes the underlying stream. Does nothing if already closed.