-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WaitAny #32
Add WaitAny #32
Conversation
Codecov Report
@@ Coverage Diff @@
## master #32 +/- ##
==========================================
+ Coverage 98.17% 98.48% +0.31%
==========================================
Files 5 6 +1
Lines 164 198 +34
==========================================
+ Hits 161 195 +34
Misses 2 2
Partials 1 1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved, please add 2 test case on 0 input task and on a success case.
wait_any.go
Outdated
} | ||
} | ||
|
||
// we have at least 1 error when FailOnAnyError is not set, return first one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it has to be all task failed to hit here.
WaitAny will exit on first finished task or first error