rvagg/through2 — pull request #25 by mafintosh (2014-08-07 20:50:12+00:00)
Title: add .destroy method

Similarly to the old through module (and many other stream modules) this adds a `.destroy()` method that emits close on the next tick.

This allow you to easier add teardown logic

``` js
var makeStream = function() {
var stream = through2(...)
stream.on('close', function() {
// in case stream was destroyed cleanup
})
return stream
}
```