Skip to content

Instantly share code, notes, and snippets.

Created October 3, 2017 21:41
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 anonymous/17e152e8a259ca492034ee836df9cbb5 to your computer and use it in GitHub Desktop.
Save anonymous/17e152e8a259ca492034ee836df9cbb5 to your computer and use it in GitHub Desktop.
jdv@new-host-2]$ cat t/01-basic.t
use v6.d.PREVIEW;
react whenever supply { emit(supply {emit 1}) } {
start { react whenever $_ {
say "before";
say qqx{echo foo};
say "after";
}}
}
[jdv@new-host-2]$ perl6 t/01-basic.t
before
[jdv@new-host-2]$ cat t/01-basic.t
use v6.d.PREVIEW;
react whenever supply { emit(supply {emit 1}) } {
start { react whenever $_ {
say "before";
#say qqx{echo foo};
say "after";
}}
}
[jdv@new-host-2]$ perl6 t/01-basic.t
before
after
[jdv@new-host-2]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment