ursus
06/28/2025, 3:29 PMaudio processing producer consumer
system. Typically in blocking world that is solved with 2 threads and a RingBuffer
.
Say now I want to do that in ktor server, where producer is a web socket.
The ktor ws api is suspending.
Does it make sense to implement this with `Channel`s? Don’t channels require immutable data?
How would you go about it?
Is it a good idea to flatten a byte array and send each byte into a Channel?