asSink

fun ByteWriteChannel.asSink(): RawSink

Converts the current ByteWriteChannel instance into a RawSink.

Please note: the RawSink produced by this operation uses runBlocking to flush the content.

Report a problem