function StreamSink(callback) {
  EventEmitter.call(this)

  this.callback = callback
  this.sink = ''
  this.writable = true

  const sink = this
  this.on('error', function handleError(error) {
    sink.writable = false
    callback(error)
  })
}
Pipe a readable stream into this sink that fulfills the Writable Stream
contract and the callback will be fired when the stream has been completely
read.

@param callback