Shyp / rickover

A job queue and scheduler written in Go, backed by Postgres, and available over HTTP
https://godoc.org/github.com/Shyp/rickover
MIT License
182 stars 21 forks source link

use errgroup.Group instead of sync.WaitGroup #10

Closed kevinburke closed 6 years ago

kevinburke commented 7 years ago

errgroup.Group has primitives for passing errors up through a WaitGroup, as well as canceling any other in-progress goroutines when one of them fails, both of which are improvements on a sync.WaitGroup and let us pass errors up the stack here.