private boolean done() { this.completedExceptionally = false; this.done = true; handleOnComplete(true); return true; }
private FastFuture<T> completeExceptionally(Throwable t) { exception.lazySet(t); completedExceptionally = true; handleOnComplete(true); if (pipeline != null && pipeline.onFail != null) pipeline.onFail.accept(t); done = true; return this; }