Skip to content
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

fix consume panic . lead to receive result invalid. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

283222278
Copy link

No description provided.

consume  panic . lead to receive result invalid.
@@ -101,6 +101,8 @@ func (p *Parallel) secure(pipe *Pipeline) {
}
if p.exception != nil {
p.exception.OnExcept(err)
}else {
panic(err)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, only the above error types will raise panic, other types of errors will be ignored by default, but you can call parallel.Except() method to add an exception handler that can handle the panic or just re-panic.

@283222278
Copy link
Author

if no parallel.Except() callback, other types of errors will be ignored.
program received result without warning,this can be a serious problem with some data .

@FrankDMartinez
Copy link

@283222278 Can you give an example of such a case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants