If we read a chunk from the server smaller than what we requested then we can assume that there is no more stream to read and any subsequent reads would be empty. We can bail out of the Stream.unfold early in this case to prevent an extra network call and reduce latency.
Connects #92.
If we read a chunk from the server smaller than what we requested then we can assume that there is no more stream to read and any subsequent reads would be empty. We can bail out of the
Stream.unfold
early in this case to prevent an extra network call and reduce latency.