Refactor the time delays into constants and mention the units

This commit is contained in:
cmdr2
2022-10-20 17:22:01 +05:30
parent d8753adc4e
commit 090dfff730
4 changed files with 24 additions and 14 deletions

View File

@ -273,4 +273,10 @@ function BraceExpander() {
return evaluated(dctParse);
}
}
}
function asyncDelay(timeout) {
return new Promise(function(resolve, reject) {
setTimeout(resolve, timeout, true)
})
}