Scoop API

scoop:scoop.asyncio:0.1.0

copyTo

function copyTo

source · line 83
public
public suspend fun AsyncByteSource.copyTo(destination: AsyncByteSink, bufferSize: Long = 8192L): Long

Extension receiver: AsyncByteSource

Copies until EOF through a positive-size bounded buffer and returns the transferred byte count. Both endpoints remain borrowed.