dominictarr / through

simple way to create a ReadableWritable stream that works
Other
669 stars 64 forks source link

Alias `queue()` to `push()` #5

Closed Raynos closed 11 years ago

Raynos commented 11 years ago

streams2 as a [push()][1] that does effectively the same as queue()

It might be nice to allow push() to work on through aswell, or if  we have time we can get @izs to pave the queue() cow-path.

  [1]: https://github.com/joyent/node/blob/master/doc/api/stream.markdown#readablepushchunk

dominictarr commented 11 years ago

does push(null) also queue end on streams2? If not adding this alias would be misleading.

Raynos commented 11 years ago

both push(null) and push(undefined) end a streams2

dominictarr commented 11 years ago

merged into 2.2.0