Skip to content

Commit dc09106

Browse files
author
Jan-Olof Hendig
committed
Fixed some formatting issues
1 parent 8368169 commit dc09106

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/Type/Supply.pod6

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,15 @@ on to the C<Supply>. (for example, C<$supply.on-close(&on-close).map(*.uc)>).
241241
When using a C<react> or C<supply> block, using the L<CLOSE|/language/phasers#CLOSE>
242242
phaser is usually a better choice.
243243
244-
my $s = Supplier.new;
245-
my $tap = $s.Supply.on-close({ say "Tap closed" }).tap(
246-
-> $v { say "the value is $v" },
247-
done => { say "Supply is done" },
248-
quit => -> $ex { say "Supply finished with error $ex" },
249-
);
244+
my $s = Supplier.new;
245+
my $tap = $s.Supply.on-close({ say "Tap closed" }).tap(
246+
-> $v { say "the value is $v" },
247+
done => { say "Supply is done" },
248+
quit => -> $ex { say "Supply finished with error $ex" },
249+
);
250250
251-
$s.emit('Perl 6');
252-
$tap.close; # OUTPUT: «Tap closed␤»
251+
$s.emit('Perl 6');
252+
$tap.close; # OUTPUT: «Tap closed␤»
253253
254254
=head2 method interval
255255
@@ -586,9 +586,9 @@ Use C<migrate> to join the values into a single supply again.
586586
587587
method migrate(Supply:D: --> Supply:D)
588588
589-
Takes a Supply which itself has values that are of type Supply as input. Each
590-
time the outer Supply emits a new Supply, this will be tapped and its values
591-
emitted. Any previously tapped Supply will be closed. This is useful for migrating
589+
Takes a C<Supply> which itself has values that are of type C<Supply> as input. Each
590+
time the outer C<Supply> emits a new C<Supply>, this will be tapped and its values
591+
emitted. Any previously tapped C<Supply> will be closed. This is useful for migrating
592592
between different data sources, and only paying attention to the latest one.
593593
594594
For example, imagine an application where the user can switch between different

0 commit comments

Comments
 (0)