Scoop API

scoop:scoop.compression:0.1.0

AsyncCompressionSource

class AsyncCompressionSource

source · line 13
public
public class AsyncCompressionSource private constructor(private val stream: AsyncCompressionSourceImpl) : AsyncByteSource, AsyncCloseable

A suspending compression source adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. I/O waits suspend; codec computation remains local. Cancellation cleanup waits for active operations. Reading to EOF completes format validation; early close does not.

function close

source · line 48
public
public override suspend fun close(): Unit

Releases codec state and closes an endpoint whose ownership was transferred. It does not force incomplete data to finish.