asyncStreamWriter

suspend fun asyncStreamWriter(bufferSize: Int = AsyncByteArrayDequeChunked.DEFAULT_MAX_SIZE, name: String? = null, lazy: Boolean = false, process: suspend (out: AsyncOutputStream) -> Unit): AsyncInputStream

Creates a an AsyncInputStream from a process function that writes to a AsyncOutputStream.

The process function is executed lazily when the data is tried to be read.