Created
August 30, 2019 18:09
-
-
Save Whateverable/9a56ff20671bf4a25b7368c612e58ee1 to your computer and use it in GitHub Desktop.
evalable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my Promise $p .= new; start { react { whenever $p -> $res { say $res; if $res == 1 { $p .= new; $p.keep: 2; } elsif $res == 2 { done } } }; $p.keep: 1; sleep 1; $p .= new; $p.keep: 2; sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(exit code 1) | |
===SORRY!=== Error while compiling /tmp/bkyVrXpqKh | |
Missing block | |
at /tmp/bkyVrXpqKh:1 | |
------> sleep 1; $p .= new; $p.keep: 2; sleep 1⏏<EOL> | |
expecting any of: | |
postfix | |
statement end | |
statement modifier | |
statement modifier loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment