MCPcopy Create free account
hub / github.com/go-task/task / WithWatch

Function WithWatch

executor.go:352–354  ·  view source on GitHub ↗

WithWatch tells the [Executor] to keep running in the background and watch for changes to the fingerprint of the tasks that are run. When changes are detected, a new task run is triggered.

(watch bool)

Source from the content-addressed store, hash-verified

350// for changes to the fingerprint of the tasks that are run. When changes are
351// detected, a new task run is triggered.
352func WithWatch(watch bool) ExecutorOption {
353 return &watchOption{watch}
354}
355
356type watchOption struct {
357 watch bool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…