Skip to content

range-labs/execgroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

execgroup

ExecGroup uses a WaitGroup to allow multiple functions to be called concurrently.

var eg ExecGroup

// Run two functions concurrently.
eg.Do(func() {
  // Function 1
})

eg.Do(func() {
  // Function 2
})

// Wait for both functions to finish and handle errors.
if err := eg.Wait(); err != nil {
    // handle errors.
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages