Skip to content

Commit 6027c8a

Browse files
committed
Explains you shouldn't use last in whenever
That would close #1551. Please reopen if you don't feel happy about it.
1 parent fdeaa1e commit 6027c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/concurrency.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ This could also be written using the C<react> keyword:
319319
320320
Here the C<whenever> keyword uses L«C<.act>|/type/Supply#method_act»
321321
to create a tap on the L<Supply> from the provided block. The C<react>
322-
block is exited when C<done()> is called in one of the taps.
322+
block is exited when C<done()> is called in one of the taps. Using C<last> to exit the block would produce an error indicating that it's not really a loop construct.
323323
324324
A second argument can be supplied to C<interval> which specifies a delay
325325
in seconds before the first event is fired. Each tap of a supply created

0 commit comments

Comments
 (0)