writer

fun CoroutineScope.writer(    coroutineContext: CoroutineContext = EmptyCoroutineContext,     autoFlush: Boolean = false,     block: suspend WriterScope.() -> Unit): WriterJob


fun CoroutineScope.writer(    coroutineContext: CoroutineContext = EmptyCoroutineContext,     channel: ByteChannel,     block: suspend WriterScope.() -> Unit): WriterJob

Deprecated

We're migrating to the new kotlinx-io library. This declaration is deprecated and will be removed in Ktor 4.0.0 If you have any problems with migration, please contact us in https://youtrack.jetbrains.com/issue/KTOR-6030/Migrate-to-new-kotlinx.io-library


fun writer(coroutineContext: CoroutineContext, channel: ByteChannel, parent: Job? = null, block: suspend WriterScope.() -> Unit): WriterJob
fun writer(coroutineContext: CoroutineContext, autoFlush: Boolean = false, parent: Job? = null, block: suspend WriterScope.() -> Unit): WriterJob

Deprecated

Use scope.writer instead