Skip to content

Commit

Permalink
wait in all delay examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 25, 2014
1 parent 9094e57 commit c9b5474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -493,6 +493,7 @@ L<Mojo::IOLoop::Delay/"steps">.
my ($delay, $err) = @_;
say "Something went wrong: $err";
});
$delay->wait unless Mojo::IOLoop->is_running;
=head2 is_running
Expand Down
1 change: 1 addition & 0 deletions lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -132,6 +132,7 @@ Mojo::IOLoop::Delay - Manage callbacks and control the flow of events
my ($delay, $err) = @_;
say "Something went wrong: $err";
});
$delay->wait unless Mojo::IOLoop->is_running;
=head1 DESCRIPTION
Expand Down

0 comments on commit c9b5474

Please sign in to comment.