class PromiseCombiner {

    public void finish(Promise<Void> aggregatePromise) {
        ObjectUtil.checkNotNull(aggregatePromise, "aggregatePromise");
        checkInEventLoop();
        if (this.aggregatePromise != null) {
            throw new IllegalStateException("Already finished");
        }
        this.aggregatePromise = aggregatePromise;
        // 如果所有的future都已经完成，那么直接进行通知
        if (doneCount == expectedCount) {
            tryPromise();
        }
    }

    @Deprecated public  PromiseCombiner();
    public  PromiseCombiner(EventExecutor executor);

}