Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
destel committed Jul 15, 2024
1 parent a02f47f commit a263e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/loops.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func OrderedLoop[A, B any](in <-chan A, done chan<- B, n int, f func(a A, canWri
}
}

// todo: test and describe
// ForEach is a blocking function that processes input channel concurrently using n goroutines
func ForEach[A any](in <-chan A, n int, f func(A)) {
if n == 1 {
for a := range in {
Expand Down

0 comments on commit a263e1e

Please sign in to comment.