You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not nil that means it's over, but the empty string. At first I thought it never did this twice in a row, but I believe it actually can.
Not totally sure if this is a bug or not -- maybe it's expected? But if I'm trying to wrap things in an "IO-like" duck-typed API, that converst read calls to readpartial on the body... some consumers that want an "IO-like" object don't ever expect read(some_bytes) to return the empty string. I don't believe ruby native IO objects ever will, for instance.
Is this a bug? And in what circumstances might readpartial return empty string?
The text was updated successfully, but these errors were encountered:
Not nil that means it's over, but the empty string. At first I thought it never did this twice in a row, but I believe it actually can.
Not totally sure if this is a bug or not -- maybe it's expected? But if I'm trying to wrap things in an "IO-like" duck-typed API, that converst
read
calls toreadpartial
on the body... some consumers that want an "IO-like" object don't ever expectread(some_bytes)
to return the empty string. I don't believe ruby native IO objects ever will, for instance.Is this a bug? And in what circumstances might readpartial return empty string?
The text was updated successfully, but these errors were encountered: