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
The original design for the timer / tube things is that we assume that after setting timeout_raw, recv_raw would either:
Return some data in at most timeout_raw seconds.
Return empty string if no data is available in timeout_raw seconds.
Raise EOFError.
So we somewhat assume that recv_raw is a blocking call.
We should definitely document this better (and fix the outdated document after #87), and maybe also provide a fallback implementation for non-blocking recv_raw.
Tube::recvuntil optionally takes a timeout. If provided, it enters a loop like
However, that
return
bails out of the whole function, not the @Timer loop. Should benext if s.empty?
The text was updated successfully, but these errors were encountered: