/*
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, runOn, markType } from "igniteui-angular-core";
import { WorkItem } from "./WorkItem";
/**
 * @hidden
 */
export class Async_WhileSliceHelper extends Base {
    constructor(a, b) {
        super();
        this.b = null;
        this.c = null;
        this.d = null;
        this.b = a;
        this.d = b;
        this.c = runOn(this, this.a);
    }
    a() {
        while (this.b()) {
            if (!this.d()) {
                return WorkItem.d(this.c, 2);
            }
        }
        return null;
    }
}
Async_WhileSliceHelper.$t = markType(Async_WhileSliceHelper, 'Async_WhileSliceHelper');
//# sourceMappingURL=Async_WhileSliceHelper.js.map