ReaderScope

class ReaderScope(val channel: ByteReadChannel, val coroutineContext: CoroutineContext) : CoroutineScope

Constructors

Link copied to clipboard
constructor(channel: ByteReadChannel, coroutineContext: CoroutineContext)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun CoroutineScope.reader(coroutineContext: CoroutineContext, channel: ByteChannel, block: suspend ReaderScope.() -> Unit): ReaderJob
fun CoroutineScope.reader(coroutineContext: CoroutineContext = EmptyCoroutineContext, autoFlush: Boolean = false, block: suspend ReaderScope.() -> Unit): ReaderJob
Link copied to clipboard
fun CoroutineScope.writer(coroutineContext: CoroutineContext = EmptyCoroutineContext, channel: ByteChannel, block: suspend WriterScope.() -> Unit): WriterJob
fun CoroutineScope.writer(coroutineContext: CoroutineContext = EmptyCoroutineContext, autoFlush: Boolean = false, block: suspend WriterScope.() -> Unit): WriterJob