@abaplint/runtime
Version:
Transpiler - Runtime
14 lines • 406 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.wait = wait;
async function wait(options) {
await new Promise(r => setTimeout(r, 50));
while (true) {
if (options.cond() === true) {
break;
}
await new Promise(r => setTimeout(r, 500));
console.log("WAIT waiting another round");
}
}
//# sourceMappingURL=wait.js.map