[go-nuts] inconsistent behaviour of rate.Limiter.WaitN

2016-08-23 Thread Sokolov Yura
What is rate.Limiter ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com

[go-nuts] inconsistent behaviour of rate.Limiter.WaitN

2016-08-21 Thread Manlio Perillo
The documentation of rate.Limiter.WaitN function says that it blocks until lim permits n events to happen and that it returns an error if n exceeds the Limiter's burst size. However the documentation of rate.Limiter type says that, as a special case, if rate limit is Inf, burst size is ignored.