Closed kalexmills-splunk closed 2 years ago
WithWaitGroup can be easily misused like so:
WithWaitGroup
opt := pipelines.WithWaitGroup(&wg) out1 := pipelines.Map(ctx, in, f, opt) out2 := pipelines.Map(ctx, out1, f, opt)
Since &wg was only incremented once on the call to WithWaitGroup... there is a big problem.
&wg
Closed by #37
WithWaitGroup
can be easily misused like so:Since
&wg
was only incremented once on the call toWithWaitGroup
... there is a big problem.