-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Consider returning undefined instead of a stream #9
Comments
+0 on this; I agree with you it's the more intuitive solution, but |
@yoshuawuyts if you are using the returned stream from |
fyi, it returns the last stream to be api-compatible with .pipe - i agree the docs could be clearer on this. |
To elaborate on this a bit more: We were planning to recommend |
cc @jdalton |
i don't feel strongly about this. we can do a major bump and not return the last stream if it is a big issue. feel free to pr that. |
@mafintosh cool, I'll do it in a few days to leave this open for a bit to get more feedback |
Isn't it be more intuitive to use pump just in pipe calls? Not sure it's understandable as it can be: pump(
gulp.src('./*.files'),
transform1(),
transform2(),
gulp.dest('./'),
(err) => (err && console.error(err))
); |
I found it very counter-intuitive that this module returns a stream but it doesn't propagate errors to it. Would you consider not returning the produced stream?
The text was updated successfully, but these errors were encountered: