# New Ticket Created by  flusse...@gmail.com 
# Please include the string:  [perl #123520]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123520 >


IRClogs for reference: http://irclog.perlgeek.de/perl6/2014-12-29#i_9865603

I have this golfed-down example, tested on Rakudo 2014.12 JVM+MoarVM:

    await Promise.anyof( start({ sleep 2*3; say 3 }),
Promise.in(2*1).then({ say 1 }) ); sleep 2; say 2; sleep 3;

I'd expect that to produce output roughly equivalent to writing:

    for 1..3 { .say; sleep 2 }

But what happens instead is more like this:

    sleep 6; say 3; say 1; sleep 2; say 2;

Other stuff I've found: If I change the start() to a
Promise.in().then(), or swap the order of args to Promise.anyof, it'll
DWIM. Running the example with strace -ff generates 20+ megabytes of
output, which seems a bit fishy.

Reply via email to