src/main/java/javascalautils/concurrent/ExecutorImpl.java
@Override
    public <T> Future<T> execute(final Callable<T> callable) {
        final Promise<T> promise = Promise();
        return execute(promise, () -> {
            try {
                promise.success(callable.call());
            } catch (Exception ex) {
                promise.failure(ex);
            }
        });
    }
@Override
    public <T> Future<T> execute(final Callable<T> callable) {
        final Promise<T> promise = Promise();
        return execute(promise, () -> {
            try {
                promise.success(callable.call());
            } catch (Exception ex) {
                promise.failure(ex);
            }
        });
    }
@ Override public < T > Future < T > execute ( final Callable < T > callable ) { final Promise < T > promise = Promise ( ) ; return execute ( promise , ( ) -> { try { promise . success ( callable . call ( ) ) ; } catch ( Exception ex ) { promise . failure ( ex ) ; } } ) ; }
/*
(non-Javadoc)

@see com.ericsson.concurrent.Executor#execute(java.util.concurrent.Callable)
/ * ( non - Javadoc )