code: public CountingCompletionHandler<T> setHandler(Handler<AsyncResult<T>> doneHandler) {
      this.doneHandler = doneHandler;
      checkDone();
      return this;
    }
docs: Sets the completion handler.
  
  @param doneHandler An asynchronous handler to be called once all calls have completed.