code: public static <T> ForkJoinTask<T> adapt(Runnable runnable, T result) {
          return new AdaptedRunnable<T>(runnable, result);
      }
docs: Returns a new {@code ForkJoinTask} that performs the {@code run}
  method of the given {@code Runnable} as its action, and returns
  the given result upon {@link #join}.
  
  @param runnable the runnable action
  @param result the result upon completion
  @return the task