ForkJoinTask.adapt

Returns a new {@code ForkJoinTask} that performs the {@code call} method of the given {@code Callable} as its action, and returns its result upon {@link #join}, translating any checked exceptions encountered into {@code RuntimeException}.

@param callable the callable action @param (T) the type of the callable's result @return the task

  1. ForkJoinTask!(T) adapt(Runnable runnable, T result)
  2. ForkJoinTask!(T) adapt(Callable!(T) callable)
    class ForkJoinTask(V)
    static
    adapt
    (
    T
    )

Meta