Path: blob/trunk/third_party/closure/goog/result/dependentresult.js
2868 views
// Copyright 2012 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314/**15* @fileoverview An interface for Results whose eventual value depends on the16* value of one or more other Results.17*/1819goog.provide('goog.result.DependentResult');2021goog.require('goog.result.Result');22232425/**26* A DependentResult represents a Result whose eventual value depends on the27* value of one or more other Results. For example, the Result returned by28* @see goog.result.chain or @see goog.result.combine is dependent on the29* Results given as arguments.30* @interface31* @extends {goog.result.Result}32* @deprecated Use {@link goog.Promise} instead - http://go/promisemigration33*/34goog.result.DependentResult = function() {};353637/**38*39* @return {!Array<!goog.result.Result>} A list of Results which will affect40* the eventual value of this Result. The returned Results may themselves41* have parent results, which would be grandparents of this Result;42* grandparents (and any other ancestors) are not included in this list.43*/44goog.result.DependentResult.prototype.getParentResults = function() {};454647