end

fun end()(source)

Close the stream gracefully, flushing the internal buffer before closing.