/** * Awaits for the promise to get the result.<br> * Throws a Throwable if the calculation providing the promise threw an exception * * @param timeout A user defined timeout in milliseconds * @return The promised result * Calling get on a promise is a blocking operation and so introduces the risk of deadlocks * and has serious performance implications. * @throws PromiseTimeoutException when the promise did timeout. */ public A get(long timeout) { return get(timeout, TimeUnit.MILLISECONDS); }