v2.0.0
A write stream constructor that supports a flush function that is called before finish is emitted