use threads; foreach (0..5) { async { action like printing some string, or adding two numbers, etc... }->detach; ## Corrected per [missingthepoint]'s enigmatic post below! }