Remove all async/await stuff

This commit is contained in:
Vortrex
2023-02-21 14:39:45 -06:00
parent 1cb02b9ab1
commit b4ac02f9ec
13 changed files with 100 additions and 94 deletions

View File

@@ -2311,17 +2311,17 @@ function removeSlashesFromString(str) {
// ===========================================================================
async function waitUntil(condition) {
return new Promise((resolve) => {
let interval = setInterval(() => {
if (!condition()) {
return;
}
clearInterval(interval);
resolve();
}, 1);
});
function waitUntil(condition) {
//return new Promise((resolve) => {
// let interval = setInterval(() => {
// if (!condition()) {
// return;
// }
//
// clearInterval(interval);
// resolve();
// }, 1);
//});
}
// ===========================================================================