Design comparison
SolutionDesign
Solution retrospective
I'm new to asynchronous programming. Ideally, I would like to build a cache of a few pieces of advice to ready to load instantly when the user clicks the advice button. I couldn't figure out how to create a while loop to populate a cache on a continuous loop, and not consume too much memory. Is there a way for me to create an asynchronous loop where:
- every 1 second, a function is run. Then, the loop waits for the function to finish before continuing Let me know if you have any good resources for starting out in this kind of async programming :) Thanks
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord