/** Causes this promise to be completed with {@code result}. */ public void complete (Try<T> result) { if (_result != null) throw new IllegalStateException("Already completed"); _result = result; try { notify(COMPLETE, result, null, null); } finally { clearConnections(); } }
/** Causes this promise to be completed with {@code result}. */ public void complete (Try<T> result) { if (_result != null) throw new IllegalStateException("Already completed"); _result = result; try { notify(COMPLETE, result, null, null); } finally { clearConnections(); } }