/** * see IPromise (inheriting Callback) interface */ public Promise getLast() { while( !lock.compareAndSet(false,true) ) {} try { if (nextFuture == null) return this; else return ((Promise)nextFuture).getLast(); } finally { lock.set(false); } }
/** * see IPromise (inheriting Callback) interface */ public Promise getLast() { while( !lock.compareAndSet(false,true) ) {} try { if (nextFuture == null) return this; else return ((Promise)nextFuture).getLast(); } finally { lock.set(false); } }