MCPcopy Index your code
hub / github.com/dagger/dagger / New

Function New

util/parallel/parallel.go:14–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12)
13
14func New() parallelJobs {
15 return parallelJobs{
16 Tracing: true, // Enable tracing by default
17 Internal: false,
18 Reveal: false, // this used to be 'true', but it caused too many "hiding noisy spans" in web trace view
19
20 // Don't use the contextual tracer by default: this breaks in Dagger *clients* (including modules),
21 // because a freshly connected client does not have
22 ContextualTracer: false,
23 }
24}
25
26func Run(ctx context.Context, name string, fn JobFunc) error {
27 return New().WithJob(name, fn).Run(ctx)

Callers 15

RunMethod · 0.92
checkPortCollisionsMethod · 0.92
RunMethod · 0.92
RunMethod · 0.92
debugTraceFunction · 0.92
RunMethod · 0.92
loadBlueprintModuleMethod · 0.92
ensureModulesLoadedMethod · 0.92
BumpMethod · 0.92
buildTargetsMethod · 0.92
pushTargetsMethod · 0.92
TidyMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected