Skip to content

Instantly share code, notes, and snippets.

@ShimmerFairy
Last active August 29, 2015 13:57
Show Gist options
  • Save ShimmerFairy/9886068 to your computer and use it in GitHub Desktop.
Save ShimmerFairy/9886068 to your computer and use it in GitHub Desktop.
Simple test of concurrency.
sub foo($a) {
say "1> $a";
return [~] $a.comb Z <a b c d e f g h i j k l m n o p q r s t u v w x y z>;
}
sub bar($a) {
say "2> $a";
say $a.uc;
}
say "0>BEGIN";
<baz quux thingy intersperesed asdf>.map: -> $F { start { bar(foo($F)) } };
say "0>END";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment