Skip to content

okio / okio / Sink / close

close

(js, jvm, native) abstract fun close():Unit

Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.