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
.hyper/.race parameters sanity check #5008
Comments
From jkramer@nex.scrapping.ccCurrently it's possible to call .race and .hyper with degree => 0, which causes the program to freeze, probably because it's waiting for the 0 threads to do work. I propose adding a simple sanity check and throw some meaningful error when the parameter doesn't make any sense (degree < 1), as I can't think of a situation where a user might want this. The same is true for the batch parameter, which currently accepts values < 1 without complaining and makes the program freeze. my @xs = ^10 .hyper(batch => 0).map: * + 1; my @xs = ^10 .hyper(degree => 0).map: * + 1; |
From @lizmat
Fixed with 70640bf , tests added with 4a59ba3 , can be closed Liz |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6On Wed Jan 06 13:51:56 2016, elizabeth wrote:
Thanks! I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127191 (status was 'resolved')
Searchable as RT127191$
The text was updated successfully, but these errors were encountered: