Skip to content

juliangruber/through-timeout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

through-timeout

Through stream that calls a cb when no data has been written after the first x seconds.

Example

var Timeout = require('through-timeout');

source
.pipe(Timeout({
  objectMode: true,
  duration: 10000 
}, function () {
  // oh no!
  source.destroy();  
}))
.pipe(destination);

API

Timeout({ duration, objectMode=false }, cb)

License

MIT

About

Through stream that calls a cb when no data has been written after the first x seconds.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors