it's needed to check and wait for all promises as in "all_settled" method and set concurency thougth map.
if i have array for example of 100 promises, i need to set concurency for that, but only "all" method supported for "map" function.
Expected behavior
my $new = Mojo::Promise->map({concurrency => 3, behavior => 'all|all_settled|race|reject|resolve'}, sub {...}, @items);
// please add behavior option, now only "all" supported.
// or add concurency option to all methods all|all_settled|race|reject|resolve
Steps to reproduce the behavior
it's needed to check and wait for all promises as in "all_settled" method and set concurency thougth map. if i have array for example of 100 promises, i need to set concurency for that, but only "all" method supported for "map" function.
Expected behavior
my $new = Mojo::Promise->map({concurrency => 3, behavior => 'all|all_settled|race|reject|resolve'}, sub {...}, @items);
// please add behavior option, now only "all" supported. // or add concurency option to all methods all|all_settled|race|reject|resolve