A stream that emits a timeout event if there's a large pause after a chunk.
var stream = Timeout(delay, opts)
stream.on('timeout', function() {
// too late
});
Delay is same as in setTimeout, opts is given to Stream.Writable.
have a stream emit a timeout when it doesn't see any input
JavaScript
A stream that emits a timeout event if there's a large pause after a chunk.
var stream = Timeout(delay, opts)
stream.on('timeout', function() {
// too late
});
Delay is same as in setTimeout, opts is given to Stream.Writable.