UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

34 lines (33 loc) 1.38 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 { Base, getBoxIfEnum, markType } from "./type"; /** * @hidden */ export let AsyncVirtualDataTaskCompletionSource = /*@__PURE__*/ (() => { class AsyncVirtualDataTaskCompletionSource extends Base { constructor($t) { super(); this.$t = null; this._task = null; this.$t = $t; this.$type = this.$type.specialize(this.$t); } get task() { return this._task; } set task(a) { this._task = a; } setResult(a) { this.task.result = getBoxIfEnum(this.$t, a); this.task.isCompleted = true; } } AsyncVirtualDataTaskCompletionSource.$t = markType(AsyncVirtualDataTaskCompletionSource, 'AsyncVirtualDataTaskCompletionSource'); return AsyncVirtualDataTaskCompletionSource; })();