Codebase list golang-github-vbauerster-mpb / 42c0d1c
heap.Push concurrently Vladimir Bauer 3 years ago
1 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
337337 s.pool = append(s.pool, b)
338338 }
339339
340 for _, b := range pool {
341 heap.Push(&s.bHeap, b)
342 }
340 wg.Add(1)
341 go func() {
342 for _, b := range s.pool {
343 heap.Push(&s.bHeap, b)
344 }
345 wg.Done()
346 }()
343347
344348 readRows := len(s.rows)
345349 for i := readRows - 1; i >= 0; i-- {