Skip to content

Commit

Permalink
use slightly more verbose example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 23, 2011
1 parent c58bed9 commit e8219fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

1.89 2011-08-23 00:00:00
- Improved documentation.

1.88 2011-08-23 00:00:00
- Added EXPERIMENTAL split method to Mojo::ByteStream.
- Improved documentation.
Expand Down
5 changes: 4 additions & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -592,7 +592,10 @@ Mojo::UserAgent - Non-Blocking I/O HTTP 1.1 And WebSocket User Agent
my $t = Mojo::IOLoop->trigger;
for my $url ('mojolicio.us', 'cpan.org') {
$t->begin;
$ua->get($url => sub { $t->end(pop->res->dom->at('title')->text) });
$ua->get($url => sub {
my ($self, $tx) = @_;
$t->end($tx->res->dom->at('title')->text);
});
}
my @titles = $t->start;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -34,7 +34,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Smiling Face With Sunglasses';
our $VERSION = '1.88';
our $VERSION = '1.89';

# "These old doomsday devices are dangerously unstable.
# I'll rest easier not knowing where they are."
Expand Down

0 comments on commit e8219fd

Please sign in to comment.