code: @ObjectiveCName("pipeTo:")
      public Promise<T> pipeTo(PromiseResolver<T> resolver) {
          then(t -> resolver.result(t));
          failure(e -> resolver.error(e));
          return this;
      }
docs: Pipe result to resolver
  
  @param resolver destination resolver
  @return this