Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 330 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 330 Bytes

nerrgroup - drop-in replacement for errgroup

It's allow nested call Go() function.

    g := nerrgroup.New()
    var fn func() error
    fn = func() error {
        ...
        g.Go(fn)
    }

    g.Go(fn)
    if err := g.Wait(); err != nil {
        return err
    }