Class FJTask.Par

java.lang.Object
EDU.oswego.cs.dl.util.concurrent.FJTask
EDU.oswego.cs.dl.util.concurrent.FJTask.Par
All Implemented Interfaces:
Runnable
Enclosing class:
FJTask

public static class FJTask.Par extends FJTask
A new Par, when executed, runs the tasks provided in the constructor in parallel using coInvoke(tasks). The class is a simple utility that makes it easier to create composite FJTasks.
  • Field Details

    • tasks

      protected final FJTask[] tasks
  • Constructor Details

    • Par

      public Par(FJTask[] tasks)
      Construct a Seq that, when executed, will process each of the tasks in the tasks array in parallel
    • Par

      public Par(FJTask task1, FJTask task2)
      Two-task constructor, for compatibility with previous release.
  • Method Details

    • run

      public void run()