The old implementation relied on the first wg.Add(1) to be called before
wg.Wait(), or else the channel could be closed before the tasks even
started. This probably never happened because calling go-routines is
slower than starting the loop, but if anything had been put inbetween,
this would've failed to load the data
The old implementation relied on the first wg.Add(1) to be called before wg.Wait(), or else the channel could be closed before the tasks even started. This probably never happened because calling go-routines is slower than starting the loop, but if anything had been put inbetween, this would've failed to load the data