@Incubating
@Documented
@Retention(RetentionPolicy.SOURCE)
public @interface Parallel
Runs each iteration of an annotated for loop in parallel
using the current pool or default executor, with structured completion.
Uses Pool.current if inside a
ParallelScope.withPool block, otherwise
falls back to ForkJoinPool.commonPool().
While @Parallel provides a convenient way to parallelise
for loops, using the *Parallel collection methods
(e.g. collectParallel, eachParallel) directly may
offer a better debugging experience, as @Parallel performs
internal variable renaming in its generated code.