租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
1263428893@qq.com dd56ff1475 1,租房 2 months ago
..
test 1,租房 2 months ago
.npmignore 1,租房 2 months ago
LICENSE 1,租房 2 months ago
index.js 1,租房 2 months ago
package.json 1,租房 2 months ago
readme.markdown 1,租房 2 months ago

readme.markdown

PauseStream

This is a Stream that will strictly buffer when paused. Connect it to anything you need buffered.

  var ps = require('pause-stream')();

  badlyBehavedStream.pipe(ps.pause())

  aLittleLater(function (err, data) {
    ps.pipe(createAnotherStream(data))
    ps.resume()
  })

PauseStream will buffer whenever paused. it will buffer when yau have called pause manually. but also when it's downstream dest.write()===false. it will attempt to drain the buffer when you call resume or the downstream emits 'drain'

PauseStream is tested using stream-spec and stream-tester

This is now the default case of through

4a6fe3dc2c