diff --git a/lib/Mojolicious/Guides/Cookbook.pod b/lib/Mojolicious/Guides/Cookbook.pod index 13cb9d95a5..e3fd2c326f 100644 --- a/lib/Mojolicious/Guides/Cookbook.pod +++ b/lib/Mojolicious/Guides/Cookbook.pod @@ -1409,6 +1409,7 @@ to process requests in smaller batches. my $promise = Mojo::Promise->new; my $count = 0; my $fetch = sub { + # Stop if there are no more URLs return unless my $url = shift @urls;