/*
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, runOn, markType } from "igniteui-angular-core";
import { WorkItemExtensions } from "./WorkItemExtensions";
/**
 * @hidden
 */
var Async_WhileHelper = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(Async_WhileHelper, _super);
    function Async_WhileHelper(a, b) {
        var _this = _super.call(this) || this;
        _this.c = null;
        _this.b = null;
        _this.d = null;
        _this.b = a;
        _this.d = b;
        _this.c = runOn(_this, _this.a);
        return _this;
    }
    Async_WhileHelper.prototype.a = function () {
        if (!this.b()) {
            return null;
        }
        return WorkItemExtensions.c(this.d(), this.c);
    };
    Async_WhileHelper.$t = markType(Async_WhileHelper, 'Async_WhileHelper');
    return Async_WhileHelper;
}(Base));
export { Async_WhileHelper };
