flush

open fun flush(callback: FlushStreamCallback)

Flush the underlying compression stream, and then invoke the provided callback.

Parameters

callback

Callback to dispatch when the stream is flushed.


abstract fun flush()

Flush the underlying compression stream, and then invoke the provided callback.


open fun flush(callback: Value?)

Flush the underlying compression stream, and then invoke the provided callback.

This method variant works with Value as the callback type.

Parameters

callback

Callback to dispatch when the stream is flushed.