MCPcopy Index your code
hub / github.com/kopia/kopia / runInParallelNoResult

Function runInParallelNoResult

cli/command_benchmark.go:60–65  ·  view source on GitHub ↗
(args []A, run func(arg A))

Source from the content-addressed store, hash-verified

58}
59
60func runInParallelNoResult[A any](args []A, run func(arg A)) {
61 runInParallel(args, func(arg A) any {
62 run(arg)
63 return nil
64 })
65}
66
67func runInParallel[A, T any](args []A, run func(arg A) T) T {
68 var wg sync.WaitGroup

Callers 1

Calls 1

runInParallelFunction · 0.85

Tested by

no test coverage detected