src/main/java/javascalautils/concurrent/PromiseImpl.java
private boolean tryComplete(Consumer<FutureImpl<T>> c) {
        if (completed.compareAndSet(false, true)) {
        	//This Try is only here to manage any unforeseen exception raised by the Future event listener
        	//See issue#41
            Try(() -> c.accept(future));
            return true;
        }
        return false;
    }
private boolean tryComplete(Consumer<FutureImpl<T>> c) {
        if (completed.compareAndSet(false, true)) {
        	//This Try is only here to manage any unforeseen exception raised by the Future event listener
        	//See issue#41
            Try(() -> c.accept(future));
            return true;
        }
        return false;
    }
Internal try complete method that takes a consumer to apply the Future this Promise holds. <br>
Performs a check if this Promise already has been fulfilled or not.

@param c The consumer
@return true if completed, false if already completed