Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a spelling error and wrap in phasers/concurrency
  • Loading branch information
zostay committed May 9, 2016
1 parent 30a4a6e commit b8efc34
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion doc/Language/concurrency.pod
Expand Up @@ -370,7 +370,9 @@ as seen by a C<when> or C<default> block, the exception is caught and handled.
Otherwise, the exception continues to up the call tree (i.e., the same behavior
as when C<quit> is not set).
If you are using the C<react> or C<supply> block syntax with C<whenever>, you can add phasers within your C<whenever> blocks to handle the C<done> and C<quit> messages from the tapped supply:
If you are using the C<react> or C<supply> block syntax with C<whenever>, you
can add phasers within your C<whenever> blocks to handle the C<done> and C<quit>
messages from the tapped supply:
react {
whenever $supply {
Expand Down
14 changes: 10 additions & 4 deletions doc/Language/phasers.pod
Expand Up @@ -366,14 +366,20 @@ Runs when a role is composed into a class.
=head2 LAST
Runs when a L<Supply|/type/Supply> finishes with a call to C<done> or when a C<supply> block exits normally. It runs completely after the C<whenever> block it is placed within finishes.
Runs when a L<Supply|/type/Supply> finishes with a call to C<done> or when a
C<supply> block exits normally. It runs completely after the C<whenever> block
it is placed within finishes.
This phaser reuses the name C<LAST>, but works differently from the C<LAST> loop phaser. This phaser is similar to setting the C<done> routine while tapping a supply with C<tap>.
This phaser reuses the name C<LAST>, but works differently from the C<LAST> loop
phaser. This phaser is similar to setting the C<done> routine while tapping a
supply with C<tap>.
=head2 QUIT
Runs when a L<Supply|/type/Supply> terminates early with an exception. It runs after the C<whenever> block it is placed within finishes.
Runs when a L<Supply|/type/Supply> terminates early with an exception. It runs
after the C<whenever> block it is placed within finishes.
This phaser is siilar to setting the C<quit> routine while tapping a Supply with C<tap>.
This phaser is similar to setting the C<quit> routine while tapping a Supply
with C<tap>.
=end pod

0 comments on commit b8efc34

Please sign in to comment.