Concurrent computing

my @words = <Enjoy Rosetta Code>;
@words.race(:batch(1)).map: { sleep rand; say $_ };

Output:

Code
Rosetta
Enjoy

Last updated