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
In step 5. of waitForReadable, the threshold is computed as the stream's [[TargetReadBufferedAmount]] slot minus amount specified as the parameter to the method. Once [[ReadBufferedAmount]] increases above the threshold, the promise is resolved.
I think there was an error in computing the threshold (because it was computed in a similar way as waitForWritable). The true threshold should just be the amount specified. It doesn't make sense to compute the amount read based upon the target buffered amount. Then, for example, you could specify an amount equal to [[TargetReadBufferedAmount]] ("When I have the full target read buffered amount available in the read buffer, let me know so that I can read it out"), the threshold would be computed as 0 - meaning that the promise would resolve immediately with nothing in the read buffer.
The text was updated successfully, but these errors were encountered:
In step 5. of waitForReadable, the threshold is computed as the stream's [[TargetReadBufferedAmount]] slot minus amount specified as the parameter to the method. Once [[ReadBufferedAmount]] increases above the threshold, the promise is resolved.
I think there was an error in computing the threshold (because it was computed in a similar way as waitForWritable). The true threshold should just be the amount specified. It doesn't make sense to compute the amount read based upon the target buffered amount. Then, for example, you could specify an amount equal to [[TargetReadBufferedAmount]] ("When I have the full target read buffered amount available in the read buffer, let me know so that I can read it out"), the threshold would be computed as 0 - meaning that the promise would resolve immediately with nothing in the read buffer.
The text was updated successfully, but these errors were encountered: