Skip to content

Commit

Permalink
mention how steps relate to the promise
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 24, 2017
1 parent 16733a8 commit 19f245b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Mojo/IOLoop/Delay.pm
Expand Up @@ -489,7 +489,9 @@ Sequentialize multiple events, every time the event counter reaches zero a
callback will run, the first one automatically runs during the next reactor tick
unless it is delayed by incrementing the event counter. This chain will continue
until there are no L</"remaining"> callbacks, a callback does not increment the
event counter or an exception gets thrown in a callback.
event counter or an exception gets thrown in a callback. Finishing the chain
will also result in the promise being fulfilled, or if an exception got thrown
it will be rejected.
=head2 then
Expand All @@ -503,8 +505,8 @@ handler.
$delay->wait;
Start L</"ioloop"> and stop it again once an L</"error"> or L</"finish"> event
gets emitted, does nothing when L</"ioloop"> is already running.
Start L</"ioloop"> and stop it again once the promise has been fulfilled or
rejected, does nothing when L</"ioloop"> is already running.
=head1 SEE ALSO
Expand Down

0 comments on commit 19f245b

Please sign in to comment.