Skip to content

Commit

Permalink
re-build
Browse files Browse the repository at this point in the history
  • Loading branch information
fogfish committed Oct 14, 2024
1 parent 192b2e3 commit ec4ae6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipe/pipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func TakeWhile[A any](ctx context.Context, in <-chan A, f func(A) bool) <-chan A
return out
}

// Throttling the channel to ops per time interval
// Throttling the channel to ops per time interval.
func Throttling[A any](ctx context.Context, in <-chan A, ops int, interval time.Duration) <-chan A {
out := make(chan A, cap(in))
ctl := make(chan struct{}, ops)
Expand Down

0 comments on commit ec4ae6e

Please sign in to comment.