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

Function WithConcurrency

executor.go:502–504  ·  view source on GitHub ↗

WithConcurrency sets the maximum number of tasks that the [Executor] can run in parallel.

(concurrency int)

Source from the content-addressed store, hash-verified

500// WithConcurrency sets the maximum number of tasks that the [Executor] can run
501// in parallel.
502func WithConcurrency(concurrency int) ExecutorOption {
503 return &concurrencyOption{concurrency}
504}
505
506type concurrencyOption struct {
507 concurrency int

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…