pub async fn adapt_output_ch_to_stream(
output_ch: Receiver<Vec<u8>>,
output: impl Write,
) -> Result<(), String>Expand description
Read messages from a channel and write them as JSON lines to a stream.
Each message is followed by a newline. Blocks until the channel is closed.