pull-hang
a pull-stream source that does nothing until you abort it.
Last updated 11 years ago by dominictarr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install pull-hang 
SYNC missed versions from official npm registry.

pull-hang

a pull-stream source that does nothing until you abort it.

var Hang = require('pull-hang')


var hang = Hang()
pull(
  hang
  pull.collect(function (err) {
    //this will never callback, until you call hang(true, cb)
  })
)

//abort the stream after a timeout.
setTimeout(function () {
  hang(true, function () {})
}, 100)

License

MIT

Current Tags

  • 0.0.0                                ...           latest (11 years ago)

1 Versions

  • 0.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE