# New Ticket Created by Jonas Kramer # Please include the string: [perl #127191] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127191 >
Currently 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;