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

Function WithTimeout

executor.go:271–273  ·  view source on GitHub ↗

WithTimeout sets the [Executor]'s timeout for fetching remote taskfiles. By default, the timeout is set to 10 seconds.

(timeout time.Duration)

Source from the content-addressed store, hash-verified

269// WithTimeout sets the [Executor]'s timeout for fetching remote taskfiles. By
270// default, the timeout is set to 10 seconds.
271func WithTimeout(timeout time.Duration) ExecutorOption {
272 return &timeoutOption{timeout}
273}
274
275type timeoutOption struct {
276 timeout time.Duration

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…