@@ -487,14 +487,17 @@ Type: `Array`, `String` or `Function`
487487A task name, a function or an array of either.
488488
489489
490- ### gulp.watch(glob[ , opts] , tasks )
490+ ### gulp.watch(glob[ , opts] , fn )
491491
492492Watch files and do something when a file changes.
493493
494494``` js
495495gulp .watch (' js/**/*.js' , gulp .parallel (' uglify' , ' reload' ));
496496```
497497
498+ In the example, ` gulp.watch ` runs the function returned by gulp.parallel each
499+ time a file with the ` js ` extension in ` js/ ` is updated.
500+
498501#### glob
499502Type: ` String ` or ` Array `
500503
@@ -505,17 +508,10 @@ Type: `Object`
505508
506509Options, that are passed to [ ` gaze ` ] [ gaze ] .
507510
508- #### tasks
509- Type: ` Array ` , ` Function ` or ` String `
510-
511- A task name, a function or an array of either to run when a file changes.
511+ #### fn
512+ Type: ` Function `
512513
513- When ` tasks ` is an array, the tasks will be run in parallel:
514- ```
515- gulp.watch('*.js', [one, two]);
516- // is equivalent to
517- gulp.watch('*.js', gulp.parallel(one, two));
518- ```
514+ An [ async] ( #async-support ) function to run when a file changes.
519515
520516` gulp.watch ` returns an ` EventEmitter ` object which emits ` change ` events with
521517the [ gaze] ` event ` :
0 commit comments