-
-
Save anonymous/76adfd6450a6ae51256f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $delay = Mojo::IOLoop->delay->new; | |
$delay->on(finish => sub { | |
say "Job finished?"; | |
}); | |
$delay->on(begin => sub { | |
say "Job begins..."; | |
}); | |
$ua->get( $_ => $delay->begin) for @urls; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment