amphp / byte-stream

A non-blocking stream abstraction for PHP based on Amp.
https://amphp.org/byte-stream
MIT License
363 stars 31 forks source link

ReadableResourceStream::read() length should reattempt a read if less data is returned? #92

Closed kelunik closed 2 years ago

kelunik commented 2 years ago

We've discussed this, no it shouldn't. It's a $limit, not a $length, now. A length buffering function can be built as a decorator.