SuspendableReadSession
interface SuspendableReadSession : ReadSession
Deprecated: Use read { } instead.
Inherited Properties
abstract val availableForRead: Int Number of bytes available for read. However it doesn’t necessarily means that all available bytes could be requested at once |
Functions
Suspend until atLeast bytes become available or end of stream encountered (possibly due to exceptional close) |
Inherited Functions
Discard at most n available bytes or 0 if no bytes available yet |
|
Request buffer range atLeast bytes length |
Inheritors
abstract class ByteChannelSequentialBase : Sequential (non-concurrent) byte channel implementation |