Skip to content

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

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages