WriterScope

class WriterScope(val channel: ByteWriteChannel, val coroutineContext: CoroutineContext) : CoroutineScope

Constructors

Link copied to clipboard
constructor(channel: ByteWriteChannel, 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