Currently Read() blocks until buf is full - or I don't understand the function correctly (honestly, let's hope so). I'm looking for a way to Read() to buf for say time.Second before Read() does return so that I can parse the data (if any) on hand rather than waiting for an infinite amount of time for a buffer to fill that might not.
Currently
Read()
blocks untilbuf
is full - or I don't understand the function correctly (honestly, let's hope so). I'm looking for a way toRead()
tobuf
for saytime.Second
beforeRead()
doesreturn
so that I can parse the data (if any) on hand rather than waiting for an infinite amount of time for a buffer to fill that might not.