WithWorkerWatchMode sets directories to watch for file changes
(watch []string)
| 205 | |
| 206 | // WithWorkerWatchMode sets directories to watch for file changes |
| 207 | func WithWorkerWatchMode(watch []string) WorkerOption { |
| 208 | return func(w *workerOpt) error { |
| 209 | w.watch = watch |
| 210 | |
| 211 | return nil |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | // WithWorkerMaxFailures sets the maximum number of consecutive failures before panicking |
| 216 | func WithWorkerMaxFailures(maxFailures int) WorkerOption { |
no outgoing calls