https://thewallacehouseblog.blogspot.com/2024/05/how-can-i-ensure-this-loop-runs-as.html
How Can I Ensure This Loop Runs As Expected In Node.js