Skip to content

Commit

Permalink
Adds return markers
Browse files Browse the repository at this point in the history
Stop text running to long
  • Loading branch information
MorayJ committed Oct 18, 2018
1 parent b602d3c commit bfa7619
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions doc/Type/Supply.pod6
Expand Up @@ -59,9 +59,17 @@ Creates a new tap (a kind of subscription if you will), in addition to all
existing taps. The first positional argument is a piece of code that will be
called when a new value becomes available through the C<emit> call.
The C<&done> callback can be called in a number of cases: if a supply block is being tapped, when a C<done> routine is reached; if a supply block is being tapped, it will be automatically triggered if the supply block reaches the end; if the C<done> method is called on the parent C<Supplier> (in the case of a supply block, if there are multiple Suppliers referenced by C<whenever>, they must all have their C<done> method invoked for this to trigger the C<&done> callback of the tap as the block will then reach its end).
The C<&quit> callback is called if the tap is on a supply block which exits with an error. It is also called if the C<quit> method is invoked on the parent C<Supplier> (in the case of a supply block any one C<Supplier> quitting with an uncaught exception will call the C<&quit> callback as the block will exit with an error).
The C<&done> callback can be called in a number of cases: if a supply block is being tapped, when a C<done> routine is reached;
if a supply block is being tapped, it will be automatically triggered if the supply block reaches the end;
if the C<done> method is called on the parent C<Supplier>
(in the case of a supply block, if there are multiple Suppliers referenced by C<whenever>, they must
all have their C<done> method invoked for this to trigger the C<&done> callback of the tap as the
block will then reach its end).
The C<&quit> callback is called if the tap is on a supply block which exits with an error. It is also
called if the C<quit> method is invoked on the parent C<Supplier> (in the case of a supply block any
one C<Supplier> quitting with an uncaught exception will call the C<&quit> callback as the block will
exit with an error).
Method C<tap> returns an object of type L<Tap|/type/Tap>, on which you can
call the C<close> method to cancel the subscription.
Expand Down

0 comments on commit bfa7619

Please sign in to comment.