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 <firstname.lastname@example.org>
Reviewed-by: Russ Cox <email@example.com>
2 files changed