Skip to content

because errgroup never seems to work like it should

Notifications You must be signed in to change notification settings

estenssoros/errparty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

errparty

because errgroup never seems to work like it should

Getting Started

import (
  "time"
  "log"
  "github.com/estenssoros/errparty"
)

func main(){
  party := errparty.ErrParty{}
  party.RSVP(func() error{
    time.Sleep(5 * time.Second)
    return nil
  })

  party.RSVP(func() error{
    if err := myFunc(); err != nil{
      return err
    }
    return nil
  })

  if err := party.Party(); err != nil{
    log.Fatal(err)
  }
}

About

because errgroup never seems to work like it should

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages