Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better descriptions for delays
  • Loading branch information
kraih committed Apr 17, 2013
1 parent 1db8ba8 commit 626a4a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.96 2013-04-16
3.96 2013-04-18
- Improved default descriptions in Test::Mojo.
- Improved documentation.
- Improved tests.
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -460,9 +460,9 @@ L<Mojo::IOLoop::Client/"connect">.
my $delay = $loop->delay(sub {...});
my $delay = $loop->delay(sub {...}, sub {...});
Get L<Mojo::IOLoop::Delay> object to control the flow of events. A single
callback will be treated as a subscriber to the C<finish> event, and multiple
ones as a chain of steps.
Get L<Mojo::IOLoop::Delay> object to manage callbacks and control the flow of
events. A single callback will be treated as a subscriber to the C<finish>
event, and multiple ones as a chain of steps.
# Synchronize multiple events
my $delay = Mojo::IOLoop->delay(sub { say 'BOOM!' });
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -63,7 +63,7 @@ sub _step {

=head1 NAME
Mojo::IOLoop::Delay - Control the flow of events
Mojo::IOLoop::Delay - Manage callbacks and control the flow of events
=head1 SYNOPSIS
Expand Down Expand Up @@ -111,7 +111,8 @@ Mojo::IOLoop::Delay - Control the flow of events
=head1 DESCRIPTION
L<Mojo::IOLoop::Delay> controls the flow of events for L<Mojo::IOLoop>.
L<Mojo::IOLoop::Delay> manages callbacks and controls the flow of events for
L<Mojo::IOLoop>.
=head1 EVENTS
Expand Down

0 comments on commit 626a4a3

Please sign in to comment.