Skip to content

Commit

Permalink
🧹 go format files
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
  • Loading branch information
chris-rock committed Oct 1, 2022
1 parent 999cd5a commit faeb309
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions policy/executor/internal/waitgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (
)

// WaitGroup is a synchronization primitive that allows waiting
// for for a collection of goroutines similar to sync.WaitGroup
// for a collection of goroutines similar to sync.WaitGroup
// It differs in the following ways:
// - Add takes in a workID instead of an increment. This workID is
// passed to Done to finish it. This allows calling Done on
// the same workID twice, making the second one a noop.
// - There is a way to unblock all goroutines blocked on the
// waitgroup without a normal completion. This is done through
// Decommission
// - Add takes in a workID instead of an increment. This workID is
// passed to Done to finish it. This allows calling Done on
// the same workID twice, making the second one a noop.
// - There is a way to unblock all goroutines blocked on the
// waitgroup without a normal completion. This is done through
// Decommission
type WaitGroup struct {
cond *sync.Cond
activeWorkIDs map[string]struct{}
Expand Down

0 comments on commit faeb309

Please sign in to comment.