UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

40 lines (39 loc) 1.75 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { __extends } from "tslib"; import { Base, getBoxIfEnum, markType } from "./type"; /** * @hidden */ var AsyncVirtualDataTaskCompletionSource = /** @class */ /*@__PURE__*/ (function (_super) { __extends(AsyncVirtualDataTaskCompletionSource, _super); function AsyncVirtualDataTaskCompletionSource($t) { var _this = _super.call(this) || this; _this.$t = null; _this._task = null; _this.$t = $t; _this.$type = _this.$type.specialize(_this.$t); return _this; } Object.defineProperty(AsyncVirtualDataTaskCompletionSource.prototype, "task", { get: function () { return this._task; }, set: function (a) { this._task = a; }, enumerable: false, configurable: true }); AsyncVirtualDataTaskCompletionSource.prototype.setResult = function (a) { this.task.result = getBoxIfEnum(this.$t, a); this.task.isCompleted = true; }; AsyncVirtualDataTaskCompletionSource.$t = markType(AsyncVirtualDataTaskCompletionSource, 'AsyncVirtualDataTaskCompletionSource'); return AsyncVirtualDataTaskCompletionSource; }(Base)); export { AsyncVirtualDataTaskCompletionSource };