Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 30, 2019 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/9a56ff20671bf4a25b7368c612e58ee1 to your computer and use it in GitHub Desktop.
Save Whateverable/9a56ff20671bf4a25b7368c612e58ee1 to your computer and use it in GitHub Desktop.
evalable6
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
(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