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 c61f7f1 commit b8f17e1Copy full SHA for b8f17e1
S17-supply/syntax.t
@@ -1,7 +1,7 @@
1
use v6;
2
use Test;
3
4
-plan 67;
+plan 68;
5
6
{
7
my $s = supply {
@@ -502,4 +502,15 @@ lives-ok {
502
}
503
}, 'No react guts crash in case that once spat out two done messages either';
504
505
+lives-ok {
506
+ my $s = supply { whenever Supply.interval(0.001) { done } }
507
+ await do for ^4 {
508
+ start {
509
+ for ^500 {
510
+ react { whenever $s { } }
511
+ }
512
513
514
+}, 'No races/crashes around interval that emits done (used to SEGV and various errors)';
515
+
516
# vim: ft=perl6 expandtab sw=4
0 commit comments