``` js function createMyStream (emitter) { var pushable = Pushable((err) => console.log('error', err)) emitter.on('data', pushable.push.bind(pushable)) emitter.on('end', pushable.end.bind(pushable)) emitter.on('error', ???) return pushable } ``` thanks
Activity
dominictarr commentedon Aug 21, 2016
pushable.endtakes an argument, https://github.com/pull-stream/pull-pushable/blob/master/index.js#L28 that can be the error,but really, it looks like you should use stream-to-pull-stream instead of pull-pushable
return toPull.source(emitter)nichoth commentedon Aug 21, 2016
Ah ha. So
pushable.end()can be the end event, andpushable.end(error)can be the error event. Thanks