Package Exports
- pull-timeout2
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pull-timeout2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pull-timeout2 
Abort a pull-stream if the rate of flow drops below the specified threshold. Uses setTimeout()
under-the-hood.
example
var pull = require('pull-stream')
var timeout = require('pull-timeout2')
var delay = 500
pull(
pull.values([1, 2, 3, 4, 5, 6, 7, 8]),
pull.asyncMap(function (num, next) {
setTimeout(() => next(null, num), num * 100)
}),
timeout(delay),
pull.log() // 1 2 3 4 5 <end>
)
license
License Zero Reciprocal Public License 2.0.1