-
Notifications
You must be signed in to change notification settings - Fork 12
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
Async onEnd doesn't run when called after tap #18
Comments
bump |
It works for me with simple gulp.task('test', () =>
gulp.src(…).pipe(…).on('end')
) but not with gulp.task('test', (cb) =>
gulp.src(…).pipe(…).on('end', cb)
) |
If only the code was decaffeinated... |
Hi @flekschas . Firstly the callback for end event must be a function, so you should not use gulp.task('test', function() {
return gulp.src('./*.js')
.on('end', function() {
console.log(1);
})
.pipe(tap(function(file) {
console.log(file)
}))
.on('end', function() {
console.log(2);
});
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I specify
.on('end', callback)
after callingtap
the event callback will not be fired. One can get around this by specifying the event callback first but I am wondering if this is expected or a bug?The text was updated successfully, but these errors were encountered: