Skip to content

jdvjdv82/limiter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go lang goroutine concurrency limiter

example

limit the number of concurrent go routines to 10:

  limit := NewConcurrencyLimiter(10)
  for i := 0; i < 1000; i++ {
  	limit.Execute(func() {
  		// do some work
  	})
  }
  limit.Wait()

About

go lang concurrency limiter.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%