{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1162","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1162/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1162/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1162/events","html_url":"https://github.com/gulpjs/gulp/issues/1162","id":96697086,"number":1162,"title":"Default debounce for watch","user":{"login":"adambuczynski","id":490562,"avatar_url":"https://avatars.githubusercontent.com/u/490562?v=3","gravatar_id":"","url":"https://api.github.com/users/adambuczynski","html_url":"https://github.com/adambuczynski","followers_url":"https://api.github.com/users/adambuczynski/followers","following_url":"https://api.github.com/users/adambuczynski/following{/other_user}","gists_url":"https://api.github.com/users/adambuczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/adambuczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambuczynski/subscriptions","organizations_url":"https://api.github.com/users/adambuczynski/orgs","repos_url":"https://api.github.com/users/adambuczynski/repos","events_url":"https://api.github.com/users/adambuczynski/events{/privacy}","received_events_url":"https://api.github.com/users/adambuczynski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gulpjs/gulp/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-23T00:23:48Z","updated_at":"2015-07-23T19:07:03Z","closed_at":"2015-07-23T00:42:59Z","body":"Is it possible for Gulp to have a default debounce value for watch tasks?\r\nAfter doing a find & replace in Atom I get the following:\r\n\r\n![ss](https://www.dropbox.com/s/yn11tj6jbuzfro5/Screenshot%202015-07-23%2012.18.27.png?dl=1)\r\n\r\nAnd then:\r\n\r\n![ss](https://www.dropbox.com/s/cdyn2hzljf2kh5t/Screenshot%202015-07-23%2012.24.17.png?dl=1)\r\n\r\nThe task:\r\n\r\n```javascript\r\n/**\r\n * Watch client side code\r\n */\r\nfunction watchClientCode() {\r\n  gulp.watch([\r\n    config.assets.client.js.app,\r\n    config.assets.client.html\r\n  ], gulp.series(lintCode, testClientCode, buildAppJs, buildIndex));\r\n}\r\n```\r\n\r\nIt would be better if Gulp would automatically debounce the watch task for half a second or so before running, so to avoid running 50 times if I make a replacement in 50 files.\r\n\r\nThis is with Gulp 4.0"},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/124213605","html_url":"https://github.com/gulpjs/gulp/issues/1162#issuecomment-124213605","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1162","id":124213605,"user":{"login":"adambuczynski","id":490562,"avatar_url":"https://avatars.githubusercontent.com/u/490562?v=3","gravatar_id":"","url":"https://api.github.com/users/adambuczynski","html_url":"https://github.com/adambuczynski","followers_url":"https://api.github.com/users/adambuczynski/followers","following_url":"https://api.github.com/users/adambuczynski/following{/other_user}","gists_url":"https://api.github.com/users/adambuczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/adambuczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambuczynski/subscriptions","organizations_url":"https://api.github.com/users/adambuczynski/orgs","repos_url":"https://api.github.com/users/adambuczynski/repos","events_url":"https://api.github.com/users/adambuczynski/events{/privacy}","received_events_url":"https://api.github.com/users/adambuczynski/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T19:07:03Z","updated_at":"2015-07-23T19:07:03Z","body":"@phated Could you explain the reasoning behind that decision, because I fail to see the why having a gulp specific default which is *more* sensible to the actual functionality would be a bad thing.\r\n\r\nIf Gaze would default to 5 seconds for some reason, surely Gulp would adjust the default?\r\n\r\nJust curious what your reasoning is."}}