Sleep works between fetches. currently 5sec!

This commit is contained in:
eetnaviation
2024-03-15 22:18:50 +02:00
parent d521b9db0c
commit 3286a0168d

View File

@ -29,8 +29,8 @@ async function triggerDataFetch() {
while (true) {
console.log("Fetching new data...");
await fetchData();
console.log("Data fetch completed.");
await sleep(5000);
console.log("Data fetch completed. Wait 5 seconds before next fetch!");
await sleep.usleep(5000000);
}
}