Skip to content

Commit

Permalink
more consistent examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 26, 2017
1 parent f64c0b4 commit 3c5338f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -536,11 +536,11 @@ handler.
# Change the fulfillment value or rejection reason
$delay->then(sub {
my @value = @_;
return "The result is $value[0]";
return "This is good: $value[0]";
},
sub {
my @reason = @_;
return "Something went wrong: $reason[0]";
return "This is bad: $reason[0]";
});
=head2 wait
Expand Down

0 comments on commit 3c5338f

Please sign in to comment.