repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: bump node volta version
[benchmarks-js.git]
/
busy-wait.mjs
diff --git
a/busy-wait.mjs
b/busy-wait.mjs
index dd8a74f5a5c2faa69c3310b718d4542b1d7d614c..578e90c06228df105853fb0623f4a5e72e236f0e 100644
(file)
--- a/
busy-wait.mjs
+++ b/
busy-wait.mjs
@@
-45,7
+45,7
@@
async function divideAndConquerTimeoutBusyWait (
* @param intervalMs
*/
async function setIntervalTimeoutBusyWait (timeoutMs, intervalMs = interval) {
* @param intervalMs
*/
async function setIntervalTimeoutBusyWait (timeoutMs, intervalMs = interval) {
- return new Promise(resolve => {
+ return
await
new Promise(resolve => {
const tries = Math.round(timeoutMs / intervalMs)
let count = 0
const triesSetInterval = setInterval(() => {
const tries = Math.round(timeoutMs / intervalMs)
let count = 0
const triesSetInterval = setInterval(() => {