Discover Packages
github.com/TheThingsIndustries/mystique
pkg
ratelimit
package
Version:
v0.0.0-...-80ab217
Opens a new window with list of versions in this module.
Published: Nov 25, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
New returns a new rate limiter that allows limit events per second.
Wait blocks until the rate limit configuration permits an event to happen.
It returns an error if the Context is canceled, or the expected wait time
exceeds the Context's Deadline.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.