-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipe works but through doesn't? #449
Comments
Does the second version start at all ? The implementations of though and pipe are totally different
In the I try to avoid mixin Node streams with highland streams because there seem to be hard to debug edge cases (interop with node streams is hard). I have had some success using In your case that would be
|
I don't quite know. I know it doesn't end.
Yes, I've understood this. Which is why I'd like to use
I'll try that. Thanks! |
Tried this as well without success. const out = _()
const stdout = _(...)
.on('error', err => out.write(err))
.pipe(new BPGStream())
.on('error', err => out.write(err))
.pipe(out) |
Highland's |
@vque: That's because my first example is wrong. My apologies, it should be: _(...
// .on('error', ...) // We don't want this...
.pipe(new BPGStream()))
.on('error', ...)
.pipe(res) |
That's it then. Looks like Can you try running this? _(...).through(s => {
const bpgStream = new BPGStream()
const res = s.through(bpgStream);
bpgStream.emit('pipe', s);
return res;
})
.pipe(...) I tried to do it myself, but I don't have |
@vqvu: Yes, that solved it. |
- `pipe` now emits the `pipe` event on the destination when piping. - `pipe` has an optional pipe options argument that allows users to choose to not end the destination when the source ends.
- `pipe` now emits the `pipe` event on the destination when piping. - `pipe` has an optional pipe options argument that allows users to choose to not end the destination when the source ends.
- `pipe` now emits the `pipe` event on the destination when piping. - `pipe` has an optional pipe options argument that allows users to choose to not end the destination when the source ends.
Make pipe behave more like Readable#pipe. Fixes #449.
Using the following library https://github.com/shovon/bpg-stream
This works but doesn't propagate errors:
While this never ends/finishes:
What further requirements does
through
have overpipe
?The text was updated successfully, but these errors were encountered: