waitgroup.js icon indicating copy to clipboard operation
waitgroup.js copied to clipboard

Throw an exception if `ready` is greater than `total`

Open bradberger opened this issue 8 years ago • 1 comments

One somewhat helpful feature of WaitGroup in go is that it throws a panic if the counter is negative. Would like to suggest throwing an exception under the same circumstances in this library.

Would be happy to submit a PR, it should only need a line or two.

bradberger avatar Jun 09 '16 00:06 bradberger

Hi @bradberger, yes I'd be happy to merge that PR 😄

dtjm avatar Jun 09 '16 04:06 dtjm