develooper Front page | perl.perl5.porters | Postings from June 2016

[perl #128469] [BUG] sometimes done() does not work and the programfreezes

From:
Shoichi Kaji
Date:
June 23, 2016 23:42
Subject:
[perl #128469] [BUG] sometimes done() does not work and the programfreezes
Message ID:
rt-4.0.18-11702-1466718942-1745.128469-75-0@perl.org
# New Ticket Created by  Shoichi Kaji 
# Please include the string:  [perl #128469]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128469 >


I'm trying examples in https://doc.perl6.org/language/concurrency

Then I find
$ perl6 -e 'react { whenever Supply.interval(1) -> $v { say $v; done() if $v == 4 } }'
works, but
$ perl6 -e 'react { whenever Supply.interval(1) -> $v { say $v; done() if $v == 0 } }'
freezes.

Simpler example which freezes is:
$ perl6 -e 'react { whenever Supply.interval(1) { done(); } }'

My perl version is:
$ perl6 -v
This is Rakudo version 2016.06-22-g09cc2fb built on MoarVM version 2016.06
implementing Perl 6.c.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About