code: public Promise<String> getGreeting() {
          Promise<String> p = q.all(getSalutation(), getName())
              .then(new Continue<String, JSArray<?>>() {
                  
                  // Formats the greeting when salutation and name are delivered.
                  @Override
                  public String call(JSArray<?> value) {
                      return value.get(0) + ", " + value.get(1) + "!";
                  }
              });
          return p;
      }
docs: Given the promises of name and salutation, returns a promise of greeting.