Wait is shorthand for WaitN(ctx, 1).
(ctx context.Context)
| 231 | |
| 232 | // Wait is shorthand for WaitN(ctx, 1). |
| 233 | func (lim *Limiter) Wait(ctx context.Context) (err error) { |
| 234 | return lim.WaitN(ctx, 1) |
| 235 | } |
| 236 | |
| 237 | // WaitN blocks until lim permits n events to happen. |
| 238 | // It returns an error if n exceeds the Limiter's burst size, the Context is |