RecursiveTask

Class RecursiveTask<V>

All Implemented Interfaces:
Serializable, Future<V>
public abstract class RecursiveTask<V>
extends ForkJoinTask<V>

A recursive result-bearing ForkJoinTask.

For a classic example, here is a task computing Fibonacci numbers:

class Fibon