MCPcopy Create free account
hub / github.com/compozy/agh / WithIDGenerator

Function WithIDGenerator

internal/task/manager.go:222–226  ·  view source on GitHub ↗

WithIDGenerator overrides identifier generation for deterministic tests.

(newID func(prefix string) string)

Source from the content-addressed store, hash-verified

220
221// WithIDGenerator overrides identifier generation for deterministic tests.
222func WithIDGenerator(newID func(prefix string) string) Option {
223 return func(opts *managerOptions) {
224 opts.newID = newID
225 }
226}
227
228// WithCancelGracePeriod overrides the cooperative-stop grace period used before
229// requesting forced session termination during task-driven cancellation.

Calls

no outgoing calls