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
How to stop a task while running? #2135
Comments
Plugins manage the file stream manipulation outside of gulp's control. |
@phated Possible with the new task orchestration system? Canceling would noop for callbacks, call @niftylettuce If you want a potential workaround you can assign the stream in your task to a hoisted variable and do |
Do you realize you are asking me to kill an already running function? No, JS doesn't work like that. |
Promise cancellation prob best option https://github.com/sindresorhus/p-cancelable |
This has nothing to do with core and won't be added. |
Agreed @phated this is totally custom and outside of scope of core. Thank you! |
Is there an easy way to end a gulp task while running?
e.g. you save
a.js
during a gulp watch, it's still re-compiling and you make changes and savea.js
again before the task to re-compile it finishes -- the first task instance should be cancelled and the second should complete onlyThe text was updated successfully, but these errors were encountered: