code: synchronized void result(@Nullable T res) {
          if (isFinished) {
              throw new RuntimeException("Promise " + this + " already completed!");
          }
          isFinished = true;
          result = res;
          deliverResult();
      }
docs: Called when result is ready
  
  @param res result