Package: groovy.transform

## [Java] Annotation Type Parallel

- groovy.transform.Parallel

-     @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.

  Since:
    6.0.0
  See Also:
    ParallelASTTransformation

- - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`