Skip to content

minitauros/go-rate-limiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example

// Create limiter with a rate of 100 per second.
limiter := rate.NewLimiter(100, time.Second)
for _ = range <-someChannel {
	limiter.Take()
}
limiter.Stop()

About

Very simple Golang rate limiter

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages