Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 11, 2019 20:57
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/21e1d225f6c792453c48ccf906454b34 to your computer and use it in GitHub Desktop.
Save Whateverable/21e1d225f6c792453c48ccf906454b34 to your computer and use it in GitHub Desktop.
evalable6
my Supplier $s .= new; react { whenever $s.Supply -> Promise $p { whenever $p { say 'kept' } } LEAVE { my Promise $p .= new; $p.keep; $s.emit: $p; $p .= new; $p.keep; $s.emit: $p; sleep 3; done } } }
(exit code 1)
===SORRY!=== Error while compiling /tmp/VhtItmcZBO
Strange text after block (missing semicolon or comma?)
at /tmp/VhtItmcZBO:1
------> romise $p { whenever $p { say 'kept' } }⏏ LEAVE { my Promise $p .= new; $p.keep;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment