Skip to content

concurrentgroup a library that supports panic recovery and concurrency limiting

Notifications You must be signed in to change notification settings

oussamarouabah/concurrentgroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Concurrent group

concurrent group is a library that supports panic recovery and concurrency limiting.

Example

group, _ := concurrentgroup.NewGroup(context.Background(), 10)
for i := 0; i < 150; i   {
    group.Go(func() error {
        time.Sleep(2 * time.Second)
        fmt.Println("go test")
        return nil
    })
}
group.Wait()

About

concurrentgroup a library that supports panic recovery and concurrency limiting

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages