We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc23d9f commit 3a0aa71Copy full SHA for 3a0aa71
doc/Language/control.pod6
@@ -490,6 +490,22 @@ methods that are called from within C<gather>:
490
491
If values need to be mutable on the caller side, use L<take-rw|/type/Mu#routine_take-rw>.
492
493
+=head1 X<supply/emit|control flow,supply emit>
494
+
495
+Emits the invocant into the enclosing
496
+L<supply|/language/concurrency#index-entry-supply_(on-demand)>:
497
498
+ my $supply = supply {
499
+ emit $_ for "foo", 42, .5;
500
+ }
501
+ $supply.tap: {
502
+ say "received {.^name} ($_)";
503
504
505
+ # OUTPUT:
506
+ # received Str (foo)
507
+ # received Int (42)
508
+ # received Rat (0.5)
509
510
=head1 X<given|control flow, given>
511
X<|switch (given)>
0 commit comments