TCP or UDP are orthogonal to this, so the original comment feels like a non sequitur. These streams are not network streams and could be a file, chunks of procedural audio, or whatever.
I agree, the stream concept should be (and is) very general and ideally cover all these cases - any “bytes producing” source.
I was trying to be open minded about that and conceive a stream API over a UDP socket. It’d work IMHO, but be a little odd compared to an event-like API.
I agree, the stream concept should be (and is) very general and ideally cover all these cases - any “bytes producing” source.
I was trying to be open minded about that and conceive a stream API over a UDP socket. It’d work IMHO, but be a little odd compared to an event-like API.