npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pull-hang

0.0.0

@dominictarr

npmHomeRepoSnykSocket
Downloads:14
$ npm install pull-hang
DailyWeeklyMonthlyYearly

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