/*
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 * as tslib_1 from "tslib";
import { Base, runOn, markType } from "igniteui-angular-core";
import { WorkItem } from "./WorkItem";
/**
 * @hidden
 */
var Async_ForSliceHelper = /** @class */ (function (_super) {
    tslib_1.__extends(Async_ForSliceHelper, _super);
    function Async_ForSliceHelper(a, b, c, d) {
        var _this = _super.call(this) || this;
        _this.d = 0;
        _this.b = null;
        _this.e = 0;
        _this.c = null;
        _this.f = 0;
        _this.f = a;
        _this.d = b;
        _this.e = c;
        _this.c = d;
        _this.b = runOn(_this, _this.a);
        return _this;
    }
    Async_ForSliceHelper.prototype.a = function () {
        while (this.f < this.d) {
            var a = this.c(this.f);
            this.f += this.e;
            if (!a) {
                return WorkItem.d(this.b, 2);
            }
        }
        return null;
    };
    Async_ForSliceHelper.$t = markType(Async_ForSliceHelper, 'Async_ForSliceHelper');
    return Async_ForSliceHelper;
}(Base));
export { Async_ForSliceHelper };
//# sourceMappingURL=Async_ForSliceHelper.js.map