Skip to content

Commit

Permalink
mention return value of delay callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 5, 2013
1 parent 4ad5dba commit cf14cd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -137,9 +137,10 @@ implements the following new ones.
my $with_first_arg = $delay->begin(0);
Increment active event counter, the returned callback can be used to decrement
the active event counter again. Arguments passed to the callback are queued in
the right order for the next step or C<finish> event and C<wait> method, the
first argument will be ignored by default.
the active event counter again and will return the number of remaining active
events. Arguments passed to the callback are queued in the right order for the
next step or C<finish> event and C<wait> method, the first argument will be
ignored by default.
# Capture all arguments
my $delay = Mojo::IOLoop->delay;
Expand Down

0 comments on commit cf14cd8

Please sign in to comment.