Help for this page

Select Code to Download


  1. or download this
    # Concurrent non-blocking requests (synchronized with a delay)
    Mojo::IOLoop->delay(
    ...
        say $cpan->result->dom->at('title')->text;
      }
    )->wait;
    
  2. or download this
      sub {
        my $delay = shift;
        $ua->get($_ => $delay->begin) for @list_of_urls;
      },