Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gexec

Gexec originates from oklog where it was originally made and designed by Peter Bourgon. The library was extracted so that it can be used as an independent library without having to bring in more dependencies than required.

At some point additions have been made, but the core has remained the same.

Examples

For more detailed examples see

var g gexec.Group
{
    listener, := net.Listen("tcp", ":0")
    g.Add(func() error {
        return http.Serve(listener, http.NewServeMux())
    }, func(err error) {
        listener.Close()
    })
}
// Execute the group
fmt.Println(g.Run())

About

Group execution modelling...

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages