Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more consistent examples
  • Loading branch information
kraih committed Oct 30, 2017
1 parent e1b39f4 commit 94044da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -188,7 +188,7 @@ Mojo::IOLoop::Delay - Promises/A+ and flow-control helpers
# Wrap continuation-passing style APIs with promises
my $ua = Mojo::UserAgent->new;
sub get {
my $promise = Mojo::IOLoop->delay;
my $promise = Mojo::IOLoop::Delay->new;
$ua->get(@_ => sub {
my ($ua, $tx) = @_;
$promise->resolve($tx);
Expand Down

0 comments on commit 94044da

Please sign in to comment.