mirror of
https://github.com/samber/lo.git
synced 2025-09-27 04:15:58 +08:00
parallel: fix PartitionBy
Should fix the tests.
This commit is contained in:
@@ -116,6 +116,7 @@ func PartitionBy[T any, K comparable](collection []T, iteratee func (x T) K) [][
|
||||
|
||||
for _, item := range collection {
|
||||
go func(_item T) {
|
||||
defer wg.Done()
|
||||
key := iteratee(_item)
|
||||
|
||||
mu.Lock()
|
||||
|
Reference in New Issue
Block a user