code: @Override
      public void resolve(final Response<T> response) {
          if (!isPending()) {
              throw new IllegalStateException("Deferred object already finished, cannot resolve again");
          }
  
          state = State.RESOLVED;
          resolveResult = response.getPayload();
  
          try {
              triggerDone(response);
          } finally {
              triggerAlways(resolveResult, null);
          }
      }
docs: ===================================================================