recvBody returns empty when the stream is canceled in between checking stream.recvEnded and await recvBody. If there is some other await before recvBody.
This makes things consistent, and user can do while true until the stream is canceled or it ends.
But if streams ends with trailers or empty data, this will raise a closed queue error, mmmh
recvBody returns empty when the stream is canceled in between checking stream.recvEnded and await recvBody. If there is some other await before recvBody.
This makes things consistent, and user can do
while true
until the stream is canceled or it ends.But if streams ends with trailers or empty data, this will raise a closed queue error, mmmh