src/main/java/javascalautils/concurrent/FutureImpl.java
@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);
    }
@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);
    }
/*
(non-Javadoc)

@see javascalautils.concurrent.Future#map(java.util.function.Function)