Skip to content

Commit a7845c0

Browse files
committed
Add mention that only one whenever block runs at a time
1 parent ca6e7ac commit a7845c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/Language/concurrency.pod6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ In this example we are watching two supplies.
343343
$bread-supplier.emit("Thick sliced"); # OUTPUT: «We've got bread: Thick sliced␤»
344344
$vegetable-supplier.emit("Lettuce"); # OUTPUT: «We've got a vegetable: Lettuce␤»
345345
346+
Please note that one should keep the code inside the C<whenever> as small as possible, as only one C<whenever> block will be executed at any time. One can use a C<start> block inside the C<whenever> block to run longer running code.
346347
347348
=head3 X<C<react>|react>
348349

0 commit comments

Comments
 (0)