code: @Override
      public <R> Future<R> map(ThrowableFunction1<T, R> function) {
          // the onFailure function just passed the error as-is without transformation
          return transform(function, t -> t);
      }
docs: /*
  (non-Javadoc)
  
  @see javascalautils.concurrent.Future#map(java.util.function.Function)