This is what I’ll be settling with for now ``` fun...
# squarelibraries
b
This is what I’ll be settling with for now
Copy code
fun BufferedSource.copyTo(vararg buffers: BufferedSink): Array<out BufferedSink> {
    val SIZE = 8192
    val segment = ByteArray(SIZE)
    while (!exhausted()) {
        val bytesRead = read(segment, 0, SIZE)
        buffers.forEach { it.write(segment, 0, bytesRead) }
    }
    return buffers
}