Elegant threaded `foreach`

Thank you, @jling. The package ThreadsX seems deeper than Base.Threads, but in my project I want to avoid third-party tools.


As a solution, I defined

tforeach(f, c) = (Threads.@threads for x in c; f(x); end; return nothing)

Which I found handy as the only I need is to replace foreach with tforeach in my source file.