ChannelProvider

class ChannelProvider(size: Long?, block: () -> ByteReadChannel)

Supplies a new ByteReadChannel

Parameters

block

returns a new ByteReadChannel

Constructors

Link copied to clipboard
fun ChannelProvider(size: Long? = null, block: () -> ByteReadChannel)

Properties

Link copied to clipboard
val block: () -> ByteReadChannel
Link copied to clipboard
val size: Long? = null

is total amount of bytes that can be read from ByteReadChannel or null if size is unknown