x/time/rate: provides a rate limiter.
The rate limiter works with golang.org/x/net/context's cancelation
mechanism: the Wait method blocks until the limiter permits the
operation to proceed or the context is canceled (in which case the
requested rate allocation is remitted for use by other operations).
Co-author: Arkadi Pyuro <email@example.com>
Reviewed-by: Russ Cox <firstname.lastname@example.org>
2 files changed