Skip to content

call a callback when all passed streams have ended or any stream has errored

License

Notifications You must be signed in to change notification settings

chrisdickinson/exuent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exuent

call a callback when all passed streams have ended or any constituent stream has errored.

var exuent = require('exuent')

exuent(stream1, stream2, streamN, function(err) {
  // called ONCE after each stream has exited OR
  // any stream has errored.
})

// alternatively:
exuent([stream1, streamN], function(err) {
  // same deal!
})

API

exuent(streams:Array, ready:Function(err:Error | null))

exuent([stream:ReadableStream,] ready:Function(err:Error | null))

ready will be called on nextTick if no streams are provided.

Does not trigger flowing mode or reads. Streams must be piped separately from this function.

License

MIT

About

call a callback when all passed streams have ended or any stream has errored

Resources

License

Stars

Watchers

Forks

Packages

No packages published