Last active
August 29, 2015 13:57
-
-
Save ShimmerFairy/9886068 to your computer and use it in GitHub Desktop.
Simple test of concurrency.
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
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