write

Reads the input stream and sends it to the data stream.


suspend fun ByteStreamSender.write(source: Source): Result<Unit>

Reads the source and sends it to the data stream.

The source will be closed when this function completes, whether it succeeds or fails.