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 0d3ee3c commit 32145abCopy full SHA for 32145ab
doc/Language/control.pod6
@@ -759,6 +759,11 @@ makes it a hash.
759
my %h = gather { take "foo" => 1; take "bar" => 2};
760
say %h; # OUTPUT: «{bar => 2, foo => 1}»
761
762
+B<Note>: C<gather/take> must not be used to collect results from C<react/whenever>.
763
+The C<whenever> block is not run from the thread that runs the C<gather/react>, but
764
+the thread that runs the C<emit>. On this thread, there is no handler for the
765
+control exception thrown by C<take>, causing it to error out.
766
+
767
=head1 X<supply/emit|Control flow,supply emit>
768
769
Emits the invocant into the enclosing
0 commit comments