Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Alias `queue()` to `push()`

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
  • Loading branch information...
commit eb801b6ce2e15724f0ebe8c1a36b4ace543c1b91 1 parent ec0c445
Raynos (Jake Verbaten) authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  index.js
2  index.js
@@ -36,7 +36,7 @@ function through (write, end) {
36 36
     }
37 37
   }
38 38
 
39  
-  stream.queue = function (data) {
  39
+  stream.queue = stream.push = function (data) {
40 40
     buffer.push(data)
41 41
     drain()
42 42
     return stream

0 notes on commit eb801b6

Please sign in to comment.
Something went wrong with that request. Please try again.