**This issue is moved from:** https://github.com/Reactive-Extensions/RxJS/issues/508 http://nodejs.org/api/stream.html#stream_readable_pause I tried to request only two items from a Readable Node stream with `Rx` and I observed the following behaviour: - `Rx subscribe` next emits only the expected two items - but the `Rx Observable` reads every item from the stream, doesn't pause the stream after two **Rx** ``` var source = Rx.Node.fromStream(dbUserStream).controlled(); source.subscribe(..); source.request(2); ``` or ``` Rx.Node.fromStream(dbUserStream) .take(2) .subscribe(..); ``` I think Rx should support some backpressure here and pause the Readable stream. Would be great for `take` also. In **Highland** it works in the following way: ``` _(dbUserStream) .take(2) .toArray(function (users) { ... }); ``` Did I miss something?
This issue is moved from: Reactive-Extensions/RxJS#508
http://nodejs.org/api/stream.html#stream_readable_pause
I tried to request only two items from a Readable Node stream with
Rxand I observed the following behaviour:Rx subscribenext emits only the expected two itemsRx Observablereads every item from the stream, doesn't pause the stream after twoRx
or
I think Rx should support some backpressure here and pause the Readable stream. Would be great for
takealso.In Highland it works in the following way:
Did I miss something?